n | Texture number of the current texture list |
addr | Address of memory transfer destination |
Success | 1 | |
Failure | -1 |
If this function is used, texture must be loaded in texture memory. Memory for 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 texlist texture 0 in the buffer */ njSetTexture(&texlist); njReadTextureNum(0,buffer);