Ninja Library - Texture Function

njExitTexture

Exits texture use

FORMAT

void njExitTexture( void )

PARAMETER

None

RETURN

None

DESCRIPTION

Exits texture use.

EXAMPLE

/* Set 2 textures */
NJS_TEXNAME texname[2];
NJS_TEXLIST texlist={texname,2};
/* Prepare to read 2 textures */
NJS_TEXMEMLIST texmemlist[2];
texbuf = syMalloc(0x20000);
njInitTextureBuffer(texbuf,0x20000);
njInitTexture(texmemlist,2);
/* Load textures */
njSetTextureName(&texname[0],"file1.pvr",0,NJD_TEXATTR_TYPE_FILE|
      NJD_TEXATTR_GLOBALINDEX);
njSetTextureName(&texname[1],"file2.pvr",1,NJD_TEXATTR_TYPE_FILE|
      NJD_TEXATTR_GLOBALINDEX);
njLoadTexture(&texlist);
syFree(texbuf);
/* Set current texture in texlist */
njSetTexture(&texlist);
/* Make current texture number 0 in texlist */
njSetTextureNum(0);
/* Draw texture */
/* Exit texture */
njExitTexture();

NOTE

The area set here uses texture related functions internally. For details, refer to the texture documentation.

REFERENCE

njInitTexture()

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