DevIL Documentation Home | Previous | Next

ilGetPalette

The ilGetPalette function returns a pointer to the current image's palette, if one exists.


ILubyte *ilGetPalette(
  ILvoid
);

Parameters

None

Remarks

ilGetPalette returns an unsigned byte pointer to the current bound image's palette (if one exists) to allow direct access and modification to the contents of the palette.

Error Codes

IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, ilGetData