DevIL Documentation Home | Previous | Next

iluBuildMipmaps

The iluBuildMipmaps function generates 2d mipmaps for 2d images.


ILboolean iluBuildMipmaps(
  ILvoid
);

Parameters

None

Remarks

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.

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, iluScale, ilActiveMipmap