typedef struct{ void *texaddr; NJS_TEXSURFACE texsurface; } NJS_TEXINFO;
*texaddr | Load destination address |
texsurface | Pointer to NJS_TEXSURFACE structure |
Parameter *texaddr is used when texture load destination is main memory. After a texture is downloaded, the texture data is stored in the member of NJS_TEXMEMLIST structure. In a case where NJA_TEXINFO structure is used when loading a memory texture, the texture format type and the texture color type are inserted in the upper 16 bits of the Type field in NJS_TEXSURFACE structure, and the horizontal and vertical size of the texture are inserted in the nWidth and nHeight fields.