Drag[en]gine Game Engine  1.0
decXpmImage Class Reference

Simple XPM Image container. More...

#include <decXpmImage.h>

Public Member Functions

Constructors and Destructors
 decXpmImage (const char *xpmData[], bool flip)
 
 ~decXpmImage ()
 
Management
int GetWidth () const
 
int GetHeight () const
 
const char * GetData () const
 

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.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ decXpmImage()

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

Creates a 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. Can be used for opengl for example which expects images to be upside down.

◆ ~decXpmImage()

decXpmImage::~decXpmImage ( )

Cleans up the xpm image object.

Member Function Documentation

◆ GetData()

const char* decXpmImage::GetData ( ) const
inline

Retrieves the pointer to the RGB aligned data.

◆ GetHeight()

int decXpmImage::GetHeight ( ) const
inline

Retrieves the height of the image.

◆ GetWidth()

int decXpmImage::GetWidth ( ) const
inline

Retrieves the width of the image.


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