Ninja Library - Texture Function

njGarbageTexture

Performs garbage collection in texture memory

FORMAT

void njGarbageTexture( *addr, n )
NJS_TEXMEMLIST *addr
Uint32 n

PARAMETER

 *addr  Address of NJS_TEXMEMLIST specified by njInitTexture() function 
 n  Number of items in NJS_TEXMEMLIST specified by njInitTexture() function 

RETURN

None

DESCRIPTION

Performs garbage collection of the textures in texture memory, increasing the amount of contiguous free space in memory. Enabling garbage collection immediately after a texture has been released or when there is little free space in texture memory may yield improved performance.

EXAMPLE

njInitTexture(texmemlist,100);
njLoadTexture(&texlist0);
njLoadTexture(&texlist1);
	:
	:
njReleaseTexture(&texlist0);
njGarbageTexture(texmemlist,100);

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