DevIL Documentation | Home | Previous | Next |
The ilCloneCurImage function creates a copy of the current image.
ILuint ilCloneCurImage(
ILvoid
);
None
ilCloneCurImage creates a copy of the current image and returns the id of the new image. If a subimage of the current image is currently selected via ilActiveImage, ilActiveLayer or ilActiveMipmap, the subimage is copied, not the base image.
IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ilGenImages, ilBindImage, ilCopyImage, ilActiveImage, ilActiveLayer, ilActiveMipmap