Ninja Library - Texture Function

njSetPaletteBankNum

Sets bank for palette texture

FORMAT

void njSetPaletteBankNum( n , bank )
Uint32 n
Sint32 bank

PARAMETER

 n  Texture number 
 bank  Bank number (0 - 63) 

RETURN

None

DESCRIPTION

Sets the bank number for texture number n.

Normally, the bank is set when loading the texture, but this function can be used to change the bank when using palettes in other banks.

Because the bank changes immediately after the execution of this function, load the palette beforehand into the specified bank.

When the bank number is for a 16-color palette, the range is 0 to 63. For a 256-color palette, it is 0 (0 - 15), 16 (16 - 31), 32 (32 - 47), 48 (48 - 63).

For 256 colors, only the upper 2 bits are referenced. If a texture other than a palette texture is specified, nothing is executed.


EXAMPLE

The following sets 256-color palette of texture number 0 to bank number 16.
  
njSetPaletteBankNum(0,16);

REFERENCE

njSetPaletteBankNumG()

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