ObjectRenderInst
Engine/source/renderInstance/renderPassManager.h
Public Attributes
This is a delegate specific index which is usually used to define a mounted object.
Delegate< void(ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *overrideMat)>
The delegate callback function to call to render this object instance.
Detailed Description
Public Attributes
S32 objectIndex
This is a delegate specific index which is usually used to define a mounted object.
Delegate< void(ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *overrideMat)> renderDelegate
The delegate callback function to call to render this object instance.
Parameters:
ri | The ObjectRenderInst that called the delegate. |
state | The scene state we're rendering. |
overrideMat | An alternative material to use during rendering... usually used for special renders like shadows. If the object doesn't support override materials it shouldn't render at all. |
void * userData
Extra data to be used within the render callback.
ObjectRenderInst does not own or cleanup this data.