VRay SDK for C++
|
This class groups methods related to management of render elements in the scene. More...
#include <vraysdk.hpp>
Public Member Functions | |
RenderElement | add (RenderElement::Type type, const char *displayName, const char *instanceName) |
RenderElement | get (RenderElement::Type type) const |
std::vector< RenderElement > | getAll (RenderElement::Type type) const |
Friends | |
class | VRayRenderer |
This class groups methods related to management of render elements in the scene.
RenderElement VRay::RenderElements::add | ( | RenderElement::Type | type, |
const char * | displayName, | ||
const char * | instanceName | ||
) |
Attempts to create a new render element. Check the result against false for failure.
type | The type of render element. Some types allow more than one instance. |
displayName | An optional name to show in the VFB. If NULL, a default name will be used. |
instanceName | An optional name for the plugin instance that will be created. |
RenderElement VRay::RenderElements::get | ( | RenderElement::Type | type | ) | const |
Returns the first render element of the specified type. Often there is only one element of a given type
std::vector< RenderElement > VRay::RenderElements::getAll | ( | RenderElement::Type | type | ) | const |
Returns all render elements of the specified type. If type is NONE, all render elements of all types will be returned.