GetFaceCoordinatesFromCubemapImage Data Member Function

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.

Prototype

int32 GetFaceCoordinatesFromCubemapImage( Image p_oImage, int32 p_eCubemapFaceName, Int32Array p_aiCoordinates )

Parameters

Parameter Type Parameter Name Documentation
<Image>p_oImageA pointer to the <Image> object representing the cubemap.
int32p_eCubemapFaceNameAn <int32> representing a value from the CubemapFaceIndices or CubemapFaceNames enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL.
<Int32Array>p_aiCoordinatesThe <Int32Array> to populate with cubemap face byte coordinates.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.