|
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=nullptr, const char *instanceName=nullptr) |
| size_t | get (const std::string &name, const RenderElement::GetDataOptions &options, void *buf) const |
| 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 = nullptr, |
||
| const char * | instanceName = nullptr |
||
| ) |
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 nullptr, a default name will be used. |
| instanceName | An optional name for the plugin instance that will be created. |
| size_t VRay::RenderElements::get | ( | const std::string & | name, |
| const RenderElement::GetDataOptions & | options, | ||
| void * | buf | ||
| ) | const |
Retrieves the render element raw data into the buffer. WARNING: If Nvidia AI upscaling is enabled, then the returned image/data will have even dimentions.
| name | Render element name. |
| options | Image options (crop, color correct, etc.). |
| buf | The output data buffer. If nullptr - returns required buffer size. |
| 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.