DevIL Documentation | Home | Previous | Next |
The ilutGLBindMipmaps function binds an image to an OpenGL texture and creates mipmaps.
GLuint ilutGLBindMipmaps(
ILvoid
);
None
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.
ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ilGenImages, ilBindImage, ilutOglBuildMipmaps, ilutGLBindTexImage