Drag[en]gine Game Engine  1.21
decXpmImage Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ decXpmImage()

decXpmImage::decXpmImage ( const char *  xpmData[],
bool  flip 
)

Create new xpm image object from the given xmp data source.

Parameters
xpmDataPointer to the xpm data. Usually the pointer to the compiled in xpm data.
flipDetermines if the image has to be flippep upside down.

◆ ~decXpmImage()

decXpmImage::~decXpmImage ( )

Clean up xpm image object.

Member Function Documentation

◆ GetData()

const char* decXpmImage::GetData ( ) const
inline

Pointer to the RGB aligned data.

◆ GetHeight()

int decXpmImage::GetHeight ( ) const
inline

Height of the image.

◆ GetWidth()

int decXpmImage::GetWidth ( ) const
inline

Width of the image.


The documentation for this class was generated from the following file: