Simple XPM Image container. More...
#include <decXpmImage.h>
Public Member Functions | |
Constructors and Destructors | |
| decXpmImage (const char *xpmData[], bool flip) | |
| Creates a new xpm image object from the given xmp data source. | |
| ~decXpmImage () | |
| Cleans up the xpm image object. | |
Management | |
| int | GetWidth () const |
| Retrieves the width of the image. | |
| int | GetHeight () const |
| Retrieves the height of the image. | |
| const char * | GetData () const |
| Retrieves the pointer to the RGB aligned data. | |
Simple XPM Image container.
A simple parser for XPM images linked into the code. It is very basic and stores the image as RGB format.
| decXpmImage::decXpmImage | ( | const char * | xpmData[], |
| bool | flip | ||
| ) |
Creates a new xpm image object from the given xmp data source.
| xpmData | Pointer to the xpm data. Usually the pointer to the compiled in xpm data. |
| flip | Determines if the image has to be flippep upside down. Can be used for opengl for example which expects images to be upside down. |
| decXpmImage::~decXpmImage | ( | ) |
Cleans up the xpm image object.
| const char* decXpmImage::GetData | ( | ) | const [inline] |
Retrieves the pointer to the RGB aligned data.
| int decXpmImage::GetHeight | ( | ) | const [inline] |
Retrieves the height of the image.
| int decXpmImage::GetWidth | ( | ) | const [inline] |
Retrieves the width of the image.
1.7.2