unsigned char m_numChannels
The number of color channels.
unsigned short int m_height
float m_texelSize
The size of a texture pixel.
unsigned char * m_pixels
The aligned pixel data. Three bytes per pixel (r,g,b)
void save()
Writes the texture to an image file.
Texture & operator=(const Texture &other)
This class represents a texture.
unsigned short int m_width
The dimensions of the texture.
unsigned char m_numBytesPerChan
The number of bytes per channel.