Given a layered <Image> object representing a cubemap, this function populates the <Int32Array> object submitted to the function with the byte coordinates of the cubemap's 'top', 'bottom', 'left', 'right', 'front', or 'back' face. Non-zero indicates success, and zero indicates failure. The most common cause of failure is submitting an image with a pixel height that is not divisible evenly by 6.
int32 GetFaceCoordinatesFromCubemapImage( Image p_oImage, int32 p_eCubemapFaceName, Int32Array p_aiCoordinates )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Image> | p_oImage | A pointer to the <Image> object representing the cubemap. |
int32 | p_eCubemapFaceName | An <int32> representing a value from the CubemapFaceIndices or CubemapFaceNames enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL. |
<Int32Array> | p_aiCoordinates | The <Int32Array> to populate with cubemap face byte coordinates. |
None published. Please look for an example in the Scenome Scripting Language code base.