DevIL Documentation Home | Previous | Next

ilDeleteImages

The ilDeleteImages function deletes image names from the image stack.


ILvoid ilDeleteImages(
  ILsizei Num,
  const ILuint *Images
);

Parameters

Num
Number of image names to delete.

Width
Pointer to image names to delete.

Remarks

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