41 #ifndef __FLOAT_IMAGE_H__ 42 #define __FLOAT_IMAGE_H__ 88 CFloatImage(
int nImageWidth,
int nImageHeight,
int nNumberOfChannels,
bool bHeaderOnly =
false);
bool SaveToFile(const char *pFileName) const
Saves an image to a file.
float * pixels
The pointer to the the pixels.
bool IsCompatible(const CFloatImage *pImage) const
Checks whether two images are compatible or not.
GLenum GLsizei GLenum GLenum const GLvoid * image
bool LoadFromFile(const char *pFileName)
Loads an image from a file.
int numberOfChannels
Number of channels per pixel.
~CFloatImage()
The destructor.
int width
The width of the image in pixels.
int height
The height of the image in pixels.
int bytesPerPixel
The number of bytes used for encoding one pixel.
bool m_bOwnMemory
Flag signaling if memory is to be freed or not.
CFloatImage()
The default constructor.
Data structure for the representation of any image type (arbitrary number of channels) using the data...