|DevIL Documentation||Home | Previous | Next|
The iluBuildMipmaps function generates 2d mipmaps for 2d images.
ILboolean iluBuildMipmaps( ILvoid );
iluBuildMipmaps generates power-of-2 mipmaps for an image. If the image does not have power-of-2 dimensions, then the image is resized via iluScale. Mipmaps are then generated for the image, down to a 1x1 image. To use the mipmaps, see ilActiveMipmap.
ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ilGenImages, ilBindImage, iluScale, ilActiveMipmap