DevIL Documentation | Home | Previous | Next |
The ilSetSharedPal function sets the shared palette.
ILvoid ilSetSharedPal(
ILubyte *Pal,
ILuint PalSize,
ILenum PalType
);
ilSetSharedPal sets the palette to be used when loading images that are colour-indexed but contain no internal palette. Examples of these types of files are .cut and Doom files. By default, the shared palette is the default Doom palette.
IL_INVALID_PARAM - Pal was NULL, or PalSize was 0.
IL_OUT_OF_MEMORY - Could not allocate memory for the shared palette.