Binds the <UniformBufferNode> to the specified rendering device information object at the specified index. Before binding, you must activate the uniform buffer on the rendering device by calling the <UniformBufferNode>::Select data interface.
int32 Bind( RenderInfo p_oInfo, int32 p_iSlotIndex )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<RenderInfo> | p_oInfo | A pointer to a <RenderInfo> (rendering state object) associated with the <Render3D> object that manages the OpenGL context associated with this uniform buffer. |
int32 | p_iSlotIndex | The slot index at which you wish to bind this buffer. This must match the slot index explicitly declared in the GLSL code, or the slot index assigned by the OpenGL context. (If the slot index is not explicitly declared in the GLSL source, you can query the slot index with a <ProgramConstantInfo> object.) |
None published. Please look for an example in the Scenome Scripting Language code base.