DevIL Documentation Home | Previous | Next

ilClearImage

The ilClearImage function clears the current image.


ILboolean ilClearImage(
  ILvoid
);

Parameters

None

Remarks

ilClearImage simply clears the image to the colours specified in ilClearColour. If the current image is of format IL_COLOR_INDEX, the image is cleared to all zeros, and the palette is changed to one entry of all zeros. If the current image is of format IL_LUMINANCE, the image is cleared to all zeros.

Error Codes

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

See Also

ilGenImages, ilBindImage, ilClearColour