DevIL Documentation Home | Previous | Next

ilRegisterPal

The ilRegisterPal function registers the current image's palette.


ILvoid ilRegisterPal(
  ILvoid *Pal,
  ILuint Size,
  ILenum Type
);

Parameters

Pal
Pointer to palette to be copied to the current image.
Size
Size of Pal in bytes.
Type
Type of the palette. Accepted values are:

IL_PAL_RGB24
IL_PAL_RGB32
IL_PAL_RGBA32
IL_PAL_RGB16_TGA
IL_PAL_BGR24
IL_PAL_BGR32
IL_PAL_BGRA32
IL_PAL_BGR16_TGA

Remarks

ilRegisterPal tells OpenIL what kind of palette the current registered image has and gives it the actual palette to use. This function is to be used from within functions that have been registered via ilRegisterLoad.

Error Codes

None

See Also

ilRegisterLoad, ilRegisterFormat, ilRegisterOrigin, ilRegisterType