DevIL Documentation | Home | Previous | Next |
The ilClearImage function clears the current image.
ILboolean ilClearImage(
ILvoid
);
None
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.
IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ilGenImages, ilBindImage, ilClearColour