Ninja Library - Texture Function

njGetTextureNumG

Obtains the global index number

FORMAT

Uint32 njGetTextureNumG( void )

PARAMETER

None

RETURN

Global index number

DESCRIPTION

Obtains the global index number of the current texture. Successful when return value is from 0 to 0xFFFFFFF0; Failed when return value is 0xFFFFFFFF

EXAMPLE

Uint32 globalIndex;
/* Get the global index number for the current texture previously set */
globalIndex = njGetTextureNumG();
/* Set the global index #0 to the current texture. */
njSetTextureNumG(0);
        :
/* Draw textures */
        :
/* Put the current texture back */
njSetTextureNumG(globalIndex);

NOTE

Current texture must be set previously by njSetTextureNum() or njSetTextureNumG() function.

REFERENCE

njSetTextureNum()
njSetTextureNumG()

njGetTextureNumG
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999