#include <RslPlugin.h>
Public Member Functions | |
RslFunctionTable (const RslFunction *functions, RslVoidFunc init=NULL, RslVoidFunc cleanup=NULL) | |
Constructor. | |
Public Attributes | |
const RslFunction * | m_functions |
The function table. | |
const char | m_version |
Plugin API version number (for internal use only). | |
RslVoidFunc | m_initFunc |
Per-frame initialization function (possibly NULL). | |
RslVoidFunc | m_cleanupFunc |
Per-frame cleanup function (possibly NULL). |
It is constructed from an arry of RslFunction structs. In addition to specifying the array of entry functions, an optional initialization and cleanup function may be provided:
RSLEXPORT RslFunctionTable RslPublicFunctions(myfunctions, myinit, mycleanup);
The plugin table MUST be declared with PRMANEXPORT. For example:
PRMANEXPORT RslFunction RslPublicFunctions = ...
|
Constructor.
|
|
Per-frame cleanup function (possibly NULL).
|
|
The function table.
|
|
Per-frame initialization function (possibly NULL).
|
|
Plugin API version number (for internal use only).
|