DevIL Documentation | Home | Previous | Next |
The ilGetPalette function returns a pointer to the current image's palette, if one exists.
ILubyte *ilGetPalette(
ILvoid
);
None
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.
IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ilGenImages, ilBindImage, ilGetData