##### Ninja Library - Texture Function

# njSetPaletteBankNumG

Sets bank for palette texture

### FORMAT

`

  void njSetPaletteBankNumG( globalIndex, bank )
  Uint32 globalIndex
  Sint32 bank

`

### PARAMETER

  `globalIndex` | Global index number
  `bank` | Bank number (0 - 63)

### RETURN

  None

### DESCRIPTION

  Sets the bank number for the texture of global index number globalIndex.

  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 texture of global index number 0 to bank number 16.

      njSetPaletteBankNumG(0,16);

### REFERENCE

  `njSetPaletteBankNum()
  `

njSetPaletteBankNumG

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999