#include <c4d_shader.h>
The InitRenderStruct is usually filled by Cinema 4D and then passed to the shader or channel InitRender().
However to evaluate a BaseChannel for own purposes then create an InitRenderStruct on the stack.
Public Member Functions | |
| InitRenderStruct () | |
| InitRenderStruct (BaseDocument *t_doc) | |
| void | Init (BaseDocument *t_doc) |
| Int32 | GetThreadCount () const |
| Vector | TransformColor (const Vector &input) const |
Public Attributes | |
| Int32 | version |
| BaseTime | time |
| Int32 | fps |
| Filename | docpath |
| String * | matname |
| RootTextureString * | errorlist |
| VolumeData * | vd |
| BaseDocument * | doc |
| BaseThread * | thread |
| INITRENDERFLAG | flags |
| Bool | linear_workflow |
| Int32 | document_colorprofile |
| InitRenderStruct | ( | ) |
Default constructor.
|
explicit |
Creates the structure accordingly to the passed document.
| [in] | t_doc | The document to initialize the structure. The caller owns the pointed document. |
| void Init | ( | BaseDocument * | t_doc | ) |
Initializes the structure accordingly to the passed document.
| [in] | t_doc | The document to initialize the structure. The caller owns the pointed document. |
| Int32 GetThreadCount | ( | ) | const |
Retrieves the number of render threads.
If linear workflow is enabled the passed color is transformed into the color profile specified by document_colorprofile.
| [in] | input | The color to transform. |
| Int32 version |
The version of Cinema 4D.
| BaseTime time |
The current time.
| Int32 fps |
The framerate.
| Filename docpath |
The path for the document.
| String* matname |
The material name.
| RootTextureString* errorlist |
A private error list. Can be nullptr, always check.
| VolumeData* vd |
The volume data. Can be nullptr, always check.
| BaseDocument* doc |
The document to render. Can be nullptr, always check.
| BaseThread* thread |
The current thread or nullptr for the main Cinema 4D thread.
| INITRENDERFLAG flags |
The flags; INITRENDERFLAG.
| Bool linear_workflow |
Linear workflow enabled/disabled.
| Int32 document_colorprofile |
The document color profile: DOCUMENT_COLORPROFILE.