DevIL Documentation Home | Previous | Next

ilCloneCurImage

The ilCloneCurImage function creates a copy of the current image.


ILuint ilCloneCurImage(
  ILvoid
);


Parameters

None

Remarks

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.

Error Codes

IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, ilCopyImage, ilActiveImage, ilActiveLayer, ilActiveMipmap