|Top level C++ mental ray interface extensions. More...|
|Access to string options. More...|
|Interface wrapper class. More...|
|Typedef for backwards compatibility. |
|mi::shader_v3::Interface *||mi_get_shader_interface (int version=mi_ray_interface_version)|
|Acquire an instance of the mental ray C++ shader interface extensions. |
This is a new C++ interface for shaders which extends the existing C-style shader interface to mental ray. It is implemented as abstract interface classes which do not require symbol lookups across dynamically loadable library boundaries, like shaders. It also makes it possible to provide new, even incompatible versions of the interface later.
Binaries which have been compiled with an older version of this header file typically work with newer versions of this interface as long as the new member functions have been appended at the end of the existing classes.
The namespace alias shader_v3 is used to avoid conflict of inlined symbols between shader libraries compiled with different version. On Linux platforms, this relaxes the requirement to link shader libraries with the -Bsymbolic option.
|mi::shader_v3::Interface* mi_get_shader_interface||(||int|| version =
Acquire an instance of the mental ray C++ shader interface extensions.
|version||is the version number of the requested interface class and should usually be left at the default value. The passed version argument is used to support multiple different interface versions and should usually be the value of the variable mi_ray_interface_version in the defining header file. A future version of mental ray may optionally return a pointer to a newer version of the interface of a different type or in a different namespace, identified by a different version number.|
Referenced by mi::shader_v3::Interface::get().
Copyright © 1986-2011 by
mental images GmbH