Fills an array with index values. For example, given an image resolution of 32x32 and grid dimensions of 4x4, this function fills the array with values that create a 'checkerboard' of numbers. Each chunk of the 'checkerboard' has the same values. There would be a region filled with 0, another region filled with 1, and so forth.
int32 IndexBufferFill( Int32Array p_oDst, int32 p_nImageResX, int32 p_nImageResY, int32 p_nGridResX, int32 p_nGridResY )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Int32Array> | p_oDst | A pointer to the destination. |
int32 | p_nImageResX | The X resolution of the corresponding image for which you are creating the values. |
int32 | p_nImageResY | The Y resolution of the corresponding image for which you are creating the values. |
int32 | p_nGridResX | The X resolution of the index grid. |
int32 | p_nGridResY | The Y resolution of the index grid. |
None published. Please look for an example in the Scenome Scripting Language code base.