Populates a <TypeBuffer> with individual images from the <Texture> object submitted to this function. For example, if the <Texture> represents a cubemap, the <TypeBuffer> will contain six <Image> objects.
int32 ExtractSlicesFromCubemapTexture( Texture src_tex, Image src_img, int32 p_nWidth, int32 p_nHeight, TypeBuffer dst )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Texture> | src_tex | A pointer to the source <Texture> object. |
<Image> | src_img | A pointer to the source <Image> object. This does not have to be the same <Image> object as resident in the <Texture> object, but often it will be. |
int32 | p_nWidth | The width of the output <Image> slice in pixels. All output slices will have the same width. |
int32 | p_nHeight | The height of the output <Image> slice in pixels. All output slices will have the same height. |
<TypeBuffer> | dst | A pointer to the destination <TypeBuffer> that stores the image slices. This <TypeBuffer> object owns the pointers to the newly allocated <Image> objects. |
None published. Please look for an example in the Scenome Scripting Language code base.