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 0th and 1th component of each destination vector.
int32 PackScalarArrayInVectors( Uint8Iterator first, Uint8Iterator last, Uint8Iterator dst, int32 p_nComponents )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Uint8Iterator> | first | An iterator at the start of the source range. |
<Uint8Iterator> | last | An iterator at the end of the source range. |
<Uint8Iterator> | dst | An iterator at the start of the destination range. |
int32 | p_nComponents | The vector dimension offset. Must be 2, 3, or 4. |
None published. Please look for an example in the Scenome Scripting Language code base.