globalIndex | Global index number |
*addr | Address of memory transfer destination |
1 | Success | |
-1 | Failure |
If this function is used, texture must be loaded in the texture memory. Memory in the transfer destination must be in texture size.
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);