##### Ninja Library - Texture Structure

# NJS_TEXPALETTE

Structure used for loading, setting palette data

### DEFINITION

      typedef struct {
              void    *palette;
              Uint16  mode;
              Sint16  bank;
              Sint16  offset;
              Sint16  count;
      }NJS_TEXPALETTE;

### MEMBER

  `*palette` | Address for palette data
  `mode` | Palette color mode
  `bank` | Palette bank number 0 - 63
  `offset` | Palette entry offset 0 - 1023
  `count` | Number of palettes 1 - 1024

### DESCRIPTION

  Structure used for loading, setting palette data. The following shows value of member "mode" which indicates palette color mode.

  0 | ARGB1555
  1 | RGB565
  2 | ARGB4444
  6 | ARGB8888

### REFERENCE

  `njGetPaletteData()
  njGetPaletteMode()
  njLoadPaletteFile()
  njSetPaletteData()
  njSetPaletteMode()
  `

NJS_TEXPALETTE

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999