DevIL Documentation Home | Previous | Next


The ilDeleteImages function deletes image names from the image stack.

ILvoid ilDeleteImages(
  ILsizei Num,
  const ILuint *Images


Number of image names to delete.

Pointer to image names to delete.


ilDeleteImages deletes Num image names specified in Images. After a texture is deleted, its characteristics and dimensions are undefined, and the name may be reused by ilGenImages. ilDeleteImages ignores zeros and out-of-bounds image names. If the current image is deleted, the binding reverts to the default image (image name of 0).

Error Codes

IL_INVALID_VALUE - Num was less than one.

See Also

ilBindImage, ilGenImages