This class is defined to be user friendly for loading texture images in OpenGL.
|
Constructor.
|
|
Constructor with parameter.
|
|
Destructor.
|
|
Allocates a memory block. Used for reading pixels from buffer.
|
|
Computes the pixel size.
|
|
Gets the data array.
|
|
Gets the GL type of pixels.
|
|
Gets the data type of each element.
|
|
Gets the height.
|
|
Gets the size of pixels in bytes.
|
|
Gets the width.
|
|
Returns TRUE if the image is loaded.
|
|
releases the memory.
|
|
Resizes the memory array to width*height and GLType.
|
|
Resizes the memory array to width*height and GLType and returns the array pointer.
|
|
Resizes the memory array to a power of two and fills textureTransform, the transformation to apply in OpenGL to draw the good texture.
|
|
Saves the image.
|