A pointer to the image data or an array of the image data.
Specifies the number of color components in the texture.
Specifies the width of the texture image.
Specifies the height of the texture image.
Specifies the format of the pixel data.
Specifies the data type of the pixel data.
Enables mipmap-generation.
Specifies the level-of-detail number. Level 0 is the base image level. Level n is the n th mipmap reduction image.
OpenGL, http://www.opengl.org/sdk/docs/man4/xhtml/glTexImage2D.xml
If mipmaps is true, the gl extensions must be loaded, otherwise bad things will happen!
Sets the texture data.