SetProgramConstantMatrix Data Member Function

Stores a 4x4 matrix inside a program constant.

Prototype

int32 SetProgramConstantMatrix( int32 p_nHandle, int32 p_iIndex, Matrix value )

Parameters

Parameter Type Parameter Name Documentation
int32p_nHandleThe handle to the shader program. This can be acquired by calling the <Program> object's GetHandle() data interface..
int32p_iIndexThe index of the constant whose value is to be set. This value is typically retrieved using the GetProgramConstantIndex function.
<Matrix>valueA matrix to store in the constant.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.