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_numChannels
The number of color channels.
unsigned short int m_height
unsigned char * m_pixels
The aligned pixel data. Three bytes per pixel (r,g,b)
This class represents a texture.
unsigned short int m_width
The dimensions of the texture.
int m_width
The width of the texture in pixels.
unsigned char m_numBytesPerChan
The number of bytes per channel.