NVIDIA Iray: Math API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Plugin Support

Support for dynamically loaded plugins. More...

Classes

class   mi::base::Plugin
  Every plugin must be derived from this class. More...
 

Typedefs

typedef Plugin *  mi::base::Plugin_factory (unsigned int index, void *context)
  Typedef for the initializer function to be provided by every plugin. More...
 

Functions

virtual Sint32  mi::base::Plugin::get_version () const
  Get the version of the plugin. More...
 
virtual const char *  mi::base::Plugin::get_compiler () const
  Get the compiler used to compile the plugin. More...
 

Detailed Description

Support for dynamically loaded plugins.

Typedef Documentation

typedef Plugin* mi::base::Plugin_factory(unsigned int index, void *context)

Typedef for the initializer function to be provided by every plugin.

The initializer function is used to obtain an instance of every plugin class. Note that the actual defintion of the initializer function needs to be marked as

extern "C" MI_DLL_EXPORT
Parameters
index The index of the plugin.
context The execution context for the plugin.

Function Documentation

const char * mi::base::Plugin::get_compiler ( ) const
inlinevirtual

Get the compiler used to compile the plugin.

Returns
A string describing the compiler used to compile the plugin.
Sint32 mi::base::Plugin::get_version ( ) const
inlinevirtual

Get the version of the plugin.

Returns
The version number of the plugin.