DevIL Documentation | Home | Previous | Next |
The ilTexImage function changes the current bound image to use new dimensions.
ILboolean ilTexImage(
ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILenum Format, ILenum Type, ILvoid *Data
);
Any current image data is destroyed by ilTexImage and replaced by a new image with the attributes specified. The new image data has undefined values. To set the new image data to a certain value, use ilClearImage or ilClearImageTo.
IL_ILLEGAL_OPERATION - There is currently no
image bound. Use ilGenImages and ilBindImage before calling this
function.
IL_INVALID_PARAM - One of the parameters provided was invalid.
Width, Height, Depth or Bpp was an incorrect 0.
IL_OUT_OF_MEMORY - Could not allocate memory for the new image
data.