Ninja Library - Texture Function

njReadTextureNumG

Reads to texture memory

FORMAT

Sint32 njReadTextureNumG( globalIndex, *addr )
Uint32 globalIndex
Sint8 *addr

PARAMETER

 globalIndex  Global index number  
 *addr  Address of memory transfer destination 

RETURN

 1  Success 
 -1  Failure 

DESCRIPTION

Acquires texture of the global index number (globalIndex) from the texture memory and moves it to the main memory.

If this function is used, texture must be loaded in the texture memory. Memory in the transfer destination must be in texture size.


EXAMPLE

Uint8 *buffer;
Int size;

/* Acquire the necessary texture size */
size = NJM_TEXTURE_SIZE(&texlist,0);
buffer = syMalloc(size);

/* Acquire texture of the globalIndex number 0 to the buffer */
njReadTextureNumG(0,buffer);

REFERENCE

njReadTextureNum()

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