Makes a <Texture> and underlying <Image> object that represents a 2D array texture.
int32 Make2DArray( Texture p_oTexture, Image p_oImage, int32 p_ePixelFormat, int32 p_nWidth, int32 p_nHeight, int32 p_nArrayCount )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Texture> | p_oTexture | A pointer to the <Texture> object that will hold the <Image> object. The <Texture> object submitted to the function takes ownership of the <Image> object submitted to the function. |
<Image> | p_oImage | A pointer to the <Image> object that will be owned by the <Texture>. |
int32 | p_ePixelFormat | An <int32> representing a value from the Image_Pixel_Format enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL and look for enumerated functions starting with 'IPF'. |
int32 | p_nWidth | An <int32> representing the width in pixels of the <Image>. This will be the width of each layer in the array. |
int32 | p_nHeight | An <int32> representing the height in pixels of the <Image>. This will be the height of each layer in the array. |
int32 | p_nArrayCount | An <int32> representing the number of layers in the array texture. |
None published. Please look for an example in the Scenome Scripting Language code base.