int m_width
The width of the texture in pixels.
void bind() const
Bind the texture to the current OpenGL context.
This class represents a texture.
void upload()
Does all the OpenGL stuff to make it avialable for rendering.
int m_height
The height of the texture in pixels.
unsigned char * m_pixels
The aligned pixel data. Three bytes per pixel (r,g,b)
GLuint m_texIndex
The texture index of the texture.