PackScalarArrayInVectors Data Member Function

Packs an array of scalars in an array of vectors, with the appropriate offset such as vec2, vec3, or vec4. For example, this can pack an array of 8 scalar values into an array of four vector values, using the scalar values to fill in the vec2 component of each destination vector.

Prototype

int32 PackScalarArrayInVectors( Uint8Iterator first, Uint8Iterator last, Uint8Iterator dst, int32 p_nVectorDimension )

Parameters

Parameter Type Parameter Name Documentation
<Uint8Iterator>firstAn iterator at the start of the source range.
<Uint8Iterator>lastAn iterator at the end of the source range.
<Uint8Iterator>dstAn iterator at the end of the destination range.
int32p_nVectorDimensionThe vector dimension offset. Must be 2, 3, or 4.

Examples

Copy Text To Clipboard

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