DevIL Documentation Home | Previous | Next

ilCopyImage

The ilCopyImage function copies an image to the current image.


ILboolean ilCopyImage(
  ILuint Src
);

Parameters

Src
Name of an image to copy to the current image.

Remarks

ilCopyImage copies the attributes and data from the image named in Src. The same image bound before calling ilCopyImage remains bound afterward.

Error Codes

IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
IL_OUT_OF_MEMORY - Could not allocate memory for the new image data.

See Also

ilGenImages, ilBindImage