DevIL Documentation Home | Previous | Next


The ilutGLTexImage function binds an image to an OpenGL texture.

ILboolean ilutGLTexImage(
  GLuint Level


Texture level to place the image at. 0 is the base image level, and anything lower is a mipmap. Use ilActiveMipmap to access OpenIL's mipmaps.


ilutGLTexImage simply calls glTexImage2D with the current bound image's data and attributes.

Error Codes

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

See Also

ilGenImages, ilBindImage, ilActiveMipmap, ilutOglBindTexImage, ilutOglBuildMipmaps, ilutOglScreen, ilutGLScreenie