##### Ninja Library - Texture function

# njGetPaletteData

Acquires palette data

### FORMAT

`

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

`

### PARAMETER

  `offset` | palette offset(0 to 1023)
  `count` | palette number to load (1 to J1024)
  `*data` | acquired palette data

### RETURN

  None

### DESCRIPTION

  Acquires the count of palette data from the offset location.

### EXAMPLE

      Acquires palette data.

      /*
      	Acquire by Uint16 for 16bit color
      	Acquire by Uint32 for 32bit color
      */
      Uint16 palette[256];
      Uint16 palette2[256];
      NJS_TEXPALETTE pl={palette,0,0,0,0};
      njLoadPaletteFile("palette.pvp",&pl);
      /* Establish the mode set in the palette.pvp file */
      njSetPaletteMode(pl.mode);
      /* load palette data */
      njSetPaletteData(pl.offset,pl.count,pl.palette);
      	:
      /* Acquire palette data in palette2 */
      njGetPaletteData(pl.offset,pl.count,palette2);

### NOTE

  To execute this function it is necessary to have the palette color mode set in the `njSetPaletteMode()` function.

### REFERENCE

  `njSetPaletteData()
  `

njGetPaletteData

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999