DevIL Documentation Previous | IL | Next

 

ilDefaultImage

 

ilDefaultImage creates an ugly 64x64 image of 8x8 black and yellow squares to form a checkerboard pattern. In future versions of OpenIL, there may be an option that will load this image if an image-loading function failed (unless memory could not be allocated). This way, the user can easily tell if an image was not loaded. Plus, the calling program can continue normally, even though it will have an ugly image. ;-)

 

ILboolean ilDefaultImage(
  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.
IL_OUT_OF_MEMORY
Could not allocate enough memory for the image data.

See Also

 
ilBindImage, ilGenImages,