DevIL Documentation Home | Previous | Next

ilIsImage

The ilIsImage function determines if an image name is in use.


ILboolean ilIsImage(
  ILuint Image
);

Parameters

Image
An image name.

Remarks

ilIsImage returns whether the image name in Image is a valid image in use. If the image name in Image is in use, ilIsImage returns IL_TRUE. If Image is 0, ilIsImage returns IL_FALSE, because the default image is a special image and is never returned by ilGenImages. If the image name has been deleted by ilDeleteImages or never generated by ilGenImages, IL_FALSE is returned.

Error Codes

None

See Also

ilCreateDefaultTex, ilGenImages, ilDeleteImages