DevIL Documentation | Home | Previous | Next |
The ilCopyImage function copies an image to the current image.
ILboolean ilCopyImage(
ILuint Src
);
ilCopyImage copies the attributes and data from the image named in Src. The same image bound before calling ilCopyImage remains bound afterward.
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.