void upload()
Does all the OpenGL stuff to make it avialable for rendering.
GLuint m_texIndex
The texture index of the texture.
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)
This class represents a texture.
int m_width
The width of the texture in pixels.
void bind() const
Bind the texture to the current OpenGL context.