DevIL Documentation Home | Previous | Next

ilutGLBindMipmaps

The ilutGLBindMipmaps function binds an image to an OpenGL texture and creates mipmaps.


GLuint ilutGLBindMipmaps(
  ILvoid
);

Parameters

None

Remarks

ilutGLBindMipmaps generates a texture via glGenTextures, binds the current OpenIL image to it, generates mipmaps via gluBuild2DMipmaps and returns the texture name. This function is a more general purpose version of ilutOglBindTexImage.

Error Codes

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

See Also

ilGenImages, ilBindImage, ilutOglBuildMipmaps, ilutGLBindTexImage