##### Ninja Library - Texture Function

# njGetPaletteMode

Aquires palette color mode

### FORMAT

`

  Uint32 njGetPaletteMode( void )

`

### PARAMETER

  None

### RETURN

  Palette color mode

### DESCRIPTION

  Acquires the set palette color mode.

### EXAMPLE

      Acquires color mode.
      Uint16 palette[256];
      Uint32 mode;
      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 color */
      njSetPaletteData(pl.offset,pl.count,pl.palette);
      	:
      mode = njGetPaletteMode();

### NOTE

  To execute this function it is necessary to have the palette color mode set in the `njSetPaletteMode()` function. If palette color mode is not set, the return value is undefined.

### REFERENCE

  `njSetPaletteMode()
  `

njGetPaletteMode

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999