Ninja Library - Texture Structure

NJS_TEXINFO

Structure that is used to manage texture information

DEFINITION

typedef struct{ 
        void    *texaddr;        
        NJS_TEXSURFACE  texsurface;      
} NJS_TEXINFO; 

MEMBER

 *texaddr  Load destination address 
 texsurface  Pointer to NJS_TEXSURFACE structure 

DESCRIPTION

Structure that is used to manage texture information.

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.


REFERENCE

njSetTextureInfo()
njSetTextureName()

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