Ninja Library - Texture Structure

NJS_TEXMEMLIST

Structure for internal management of texture data registered in cache or texture memory

DEFINITION

typedef struct { 
        Uint32          globalIndex; 
        Uint32          bank; 
        Uint32          tspparambuffer; 
        Uint32          texparambuffer; 
        Uint32          texaddr; 
        NJS_TEXINFO     texinfo; 
        Uint16          count; 
        Uint16          dummy; 
} NJS_TEXMEMLIST; 

MEMBER

 globalIndex  Global index of texture registered in cache memory or texture memory 
 bank  Palette texture bank number 
 tspparambuffer  Internal setting value 
 texparambuffer  Internal setting value 
 texaddr  texture flag 
 texinfo  NJS_TEXINFO structure 
 count  Texture usage count 
 dummy  Texture error code 

DESCRIPTION

Structure for internal management of texture data registered in cache or texture memory. Default of member globalIndex and bank is 0xFFFFFFFF. The following shows the meanings of error codes indicated by member "dummy".

 Error code  Meaning 
 0  No error 
 1  Other error 
 2  File open error 
 3  Extension error 
 4  Header error 
 5  File load error 
 6  Surface error (insufficient texture memory) 
 7  Main memory error (insufficient main memory) 
 8  Texture memory load error 
 9  Global index error 


REFERENCE

njCalcTexture()
njDrawScroll()
njDrawTexture()
njDrawTextureMemList()
njExitTexture()
njGarbageTexture()
njInitCacheTextureBuffer()
njInitTexture()
njInitTextureBuffer()
njLoadCacheTexture()
njLoadCacheTextureNum()
njLoadCacheTextureNumG()
njLoadTexture()
njLoadTextureNum()
njLoadTexturePvmMemory()
njReleaseCacheTextureAll()
njReleaseCacheTextureNum()
njReleaseCacheTextureNumG()
njReleaseTexture()
njReleaseTextureAll()
njReleaseTextureNum()
njReleaseTextureNumG()
njSetPvmTextureList()
njSetTexture()
njSetTextureInfo()
njSetTextureName()
njSetTextureNum()
njSetTextureNumG()
njSetTextureParam()

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