Drag[en]gine Game Engine
1.21
|
Simple XPM Image container. More...
#include <decXpmImage.h>
Public Member Functions | |
Constructors and Destructors | |
decXpmImage (const char *xpmData[], bool flip) | |
Create new xpm image object from the given xmp data source. More... | |
~decXpmImage () | |
Clean up xpm image object. More... | |
Management | |
int | GetWidth () const |
Width of the image. More... | |
int | GetHeight () const |
Height of the image. More... | |
const char * | GetData () const |
Pointer to the RGB aligned data. More... | |
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 | ||
) |
Create 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. |
decXpmImage::~decXpmImage | ( | ) |
Clean up xpm image object.
|
inline |
Pointer to the RGB aligned data.
|
inline |
Height of the image.
|
inline |
Width of the image.