DevIL Documentation Previous | IL | Next

 

ilCloneCurImage

 

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.

 

ILuint ilCloneCurImage(
  ILvoid );


Parameters

 

None


Errors

 
IL_ILLEGAL_OPERATION
The operation attempted is not allowable in the current state. The function returns with no ill side effects. Generally there is currently no image bound or it has been deleted via ilDeleteImages. You should use ilGenImages and ilBindImage before calling the function.

See Also

 
ilActiveImage, ilActiveLayer, ilActiveMipmap, ilBindImage, ilCopyImage, ilGenImages,