n | Texture number |
bank | Bank number (0 - 63) |
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.
The following sets 256-color palette of texture number 0 to bank number 16. njSetPaletteBankNum(0,16);