##### Ninja Library - Texture Function

# njSetPaletteData

Loads palette data

### FORMAT

`

  void njSetPaletteData( offset, count, *data )
  Sint32 offset
  Sint32 count
  void *data

`

### PARAMETER

  `offset` | Palette offset ( 0 - 1023 )
  `count` | Number of palettes to load ( 1 - 1024 )
  `*data` | Palette data

### RETURN

  None

### DESCRIPTION

  Loads the number of palette data specified by "count", from the offset position. Before loading, the palette color mode must be set. Palettes are numbered from 0 to 1023, and the offset specifies the location where the first palette is to be loaded. Palette data currently used for rendering should not be changed.

### EXAMPLE

      The following loads palette data.

      Uint16 palette[256];
      NJS_TEXPALETTE pl={palette,0,0,0,0};
      njLoadPaletteFile("palette.pvp",&pl);
      /* Set mode set in palette.pvp file */
      njSetPaletteMode(pl.mode);
      /* Load palette data */
      njSetPaletteData(pl.offset,pl.count,pl.palette);

### REFERENCE

  `njSetPaletteMode()
  njLoadPaletteFile()
  `

njSetPaletteData

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999