#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 (const BaseDocument *t_doc, Int32 overrideViewTransform=-1) | |
| void | Init (const BaseDocument *t_doc, Int32 overrideViewTransform=-1) | 
| MAXON_ATTRIBUTE_FORCE_INLINE Int32 | GetC4DVersion () const | 
| MAXON_ATTRIBUTE_FORCE_INLINE Int32 | GetStructureVersion () const | 
| Int32 | GetThreadCount () const | 
| Vector | TransformColor (const Vector &input) const | 
| maxon::Color | TransformColor (const maxon::Color &input) const | 
Public Attributes | |
| BaseTime | time | 
| Int32 | fps | 
| Filename | docpath | 
| String * | matname | 
| RootTextureString * | errorlist | 
| VolumeData * | vd | 
| const BaseDocument * | doc | 
| BaseThread * | thread | 
| INITRENDERFLAG | flags | 
| Bool | linear_workflow | 
| Int32 | document_colorprofile | 
| OcioConverterRef | ocioConverter | 
Private Attributes | |
| UInt32 | version | 
Static Private Attributes | |
| static constexpr UInt32 | CURRENT_VERSION | 
| 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. | 
| [in] | overrideViewTransform | Index within the viewtransform array to override the view transform. Ignored, if the value is not a valid index. | 
| void Init | ( | const BaseDocument * | t_doc, | 
| Int32 | overrideViewTransform = -1  | 
        ||
| ) | 
Initializes the structure accordingly to the passed document.
| [in] | t_doc | The document to initialize the structure. The caller owns the pointed document. | 
| [in] | overrideViewTransform | Index within the viewtransform array to override the view transform. Ignored, if the value is not a valid index. | 
| MAXON_ATTRIBUTE_FORCE_INLINE Int32 GetC4DVersion | ( | ) | const | 
Gets the current Cinema 4D version.
| MAXON_ATTRIBUTE_FORCE_INLINE Int32 GetStructureVersion | ( | ) | const | 
Gets the version of this structure.
| 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. | 
| maxon::Color TransformColor | ( | const maxon::Color & | input | ) | const | 
      
  | 
  staticconstexprprivate | 
Current version number of this structure.
      
  | 
  private | 
The version of this structure in the upper 8 bits, version of Cinema 4D in the lowes 24 bits.
| 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.
| const 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.
| OcioConverterRef ocioConverter | 
OCIO converter. This is always a valid pointer (see BaseDocument::GetColorConverter()).