Ninja Library - Texture Function

njReLoadVQCodebookNum

Reloads VQ codebook

FORMAT

Sint32 njReLoadVQCodebookNum( n, *texaddr, attr )
Uint32 n
void *texaddr
Uint32 attr

PARAMETER

 n  Texture number in current texture list 
 *texaddr  Adress for either file name or texture memory 
 attr  Texture attribute 

RETURN

 1  Successful 
 -1  Failure 

DESCRIPTION

Reloads VQ texture code book of current texture list texture numbers n. Only VQ format textures are reloaded. When a texture is loaded from file, NJD_TEXATTR_TYPE_FILE is specified for the attr. When a texture is loaded from memory, NJD_TEXATTR_TYPE_MEMORY is specified for the attr.

EXAMPLE

/*
 Texture number of VQ code book changed to "texture 0."
 ** file1.pvr made VQ texture
*/
njReLoadVQCodebookNum(0,"file1.pvr",NJD_TEXATTR_TYPE_FILE);

NOTE

For memory texture, the beginning of texture target must be specified .

REFERENCE

njReLoadVQCodebookNumG()

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