Public Member Functions
android::RSC::RS Class Reference

#include <rsCppStructs.h>

Public Member Functions

bool init (std::string name, uint32_t flags=0)
void setErrorHandler (ErrorHandlerFunc_t func)
ErrorHandlerFunc_t getErrorHandler ()
void setMessageHandler (MessageHandlerFunc_t func)
MessageHandlerFunc_t getMessageHandler ()
RSError getError ()
void finish ()

Detailed Description

The RenderScript context. This class controls initialization, resource management, and teardown.

Definition at line 85 of file rsCppStructs.h.


Member Function Documentation

void android::RSC::RS::finish ( )

Waits for any currently running asynchronous operations to finish. This should only be used for performance testing and timing.

RSError android::RSC::RS::getError ( )

Returns current status for the context.

Returns:
current error
ErrorHandlerFunc_t android::RSC::RS::getErrorHandler ( ) [inline]

Returns the current error handler function for this context.

Returns:
pointer to current error handler function or NULL if not set

Definition at line 113 of file rsCppStructs.h.

MessageHandlerFunc_t android::RSC::RS::getMessageHandler ( ) [inline]

Returns the current message handler function for this context.

Returns:
pointer to current message handler function or NULL if not set

Definition at line 128 of file rsCppStructs.h.

bool android::RSC::RS::init ( std::string  name,
uint32_t  flags = 0 
)

Initializes a RenderScript context. A context must be initialized before it can be used.

Parameters:
[in]nameDirectory name to be used by this context. This should be equivalent to Context.getCacheDir().
[in]flagsOptional flags for this context.
Returns:
true on success
void android::RSC::RS::setErrorHandler ( ErrorHandlerFunc_t  func)

Sets the error handler function for this context. This error handler is called whenever an error is set.

Parameters:
[in]funcError handler function
void android::RSC::RS::setMessageHandler ( MessageHandlerFunc_t  func)

Sets the message handler function for this context. This message handler is called whenever a message is sent from a RenderScript kernel.

Parameters:
[in]funcMessage handler function

The documentation for this class was generated from the following file: