ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <bitmap.h>

Inheritance diagram for Grim::Bitmap:
Collaboration diagram for Grim::Bitmap:

List of all members.

Public Member Functions

 Bitmap (const Common::String &filename)
 Construct a bitmap from the given data.
 Bitmap (const Graphics::PixelBuffer &buf, int width, int height, const char *filename)
 Bitmap ()
const Common::StringgetFilename () const
void draw ()
void draw (int x, int y)
void drawLayer (uint32 layer)
void setActiveImage (int n)
 Set which image in an animated bitmap to use.
int getNumImages () const
int getNumLayers () const
int getActiveImage () const
bool getHasTransparency () const
int getFormat () const
int getWidth () const
int getHeight () const
const Graphics::PixelBuffergetData (int num) const
const Graphics::PixelBuffergetData () const
BitmapDatagetBitmapData () const
void * getTexIds () const
int getNumTex () const
const Graphics::PixelFormatgetPixelFormat (int num) const
void saveState (SaveGame *state) const
void restoreState (SaveGame *state)
virtual ~Bitmap ()
void freeData ()

Static Public Member Functions

static int32 getStaticTag ()
static Bitmapcreate (const Common::String &filename)

Public Attributes

BitmapData_data
int _currImage
 Specifies a one-based index to the current image in BitmapData.

Detailed Description

Definition at line 127 of file bitmap.h.


Constructor & Destructor Documentation

Grim::Bitmap::Bitmap ( const Common::String filename  ) 

Construct a bitmap from the given data.

filename the filename of the bitmap

Parameters:
data the actual data to construct from
len the length of the data

Definition at line 375 of file bitmap.cpp.

Grim::Bitmap::Bitmap ( const Graphics::PixelBuffer buf,
int  width,
int  height,
const char *  filename 
)

Definition at line 380 of file bitmap.cpp.

Grim::Bitmap::Bitmap (  ) 

Definition at line 385 of file bitmap.cpp.

Grim::Bitmap::~Bitmap (  )  [virtual]

Definition at line 466 of file bitmap.cpp.


Member Function Documentation

Bitmap * Grim::Bitmap::create ( const Common::String filename  )  [static]

Definition at line 390 of file bitmap.cpp.

void Grim::Bitmap::draw (  ) 

Definition at line 414 of file bitmap.cpp.

void Grim::Bitmap::draw ( int  x,
int  y 
)

Definition at line 422 of file bitmap.cpp.

void Grim::Bitmap::drawLayer ( uint32  layer  ) 

Definition at line 430 of file bitmap.cpp.

void Grim::Bitmap::freeData (  ) 

Definition at line 458 of file bitmap.cpp.

int Grim::Bitmap::getActiveImage (  )  const [inline]

Definition at line 160 of file bitmap.h.

BitmapData* Grim::Bitmap::getBitmapData (  )  const [inline]

Definition at line 168 of file bitmap.h.

const Graphics::PixelBuffer& Grim::Bitmap::getData (  )  const [inline]

Definition at line 167 of file bitmap.h.

const Graphics::PixelBuffer& Grim::Bitmap::getData ( int  num  )  const [inline]

Definition at line 166 of file bitmap.h.

const Common::String& Grim::Bitmap::getFilename (  )  const [inline]

Definition at line 144 of file bitmap.h.

int Grim::Bitmap::getFormat (  )  const [inline]

Definition at line 162 of file bitmap.h.

bool Grim::Bitmap::getHasTransparency (  )  const [inline]

Definition at line 161 of file bitmap.h.

int Grim::Bitmap::getHeight (  )  const [inline]

Definition at line 164 of file bitmap.h.

int Grim::Bitmap::getNumImages (  )  const

Definition at line 448 of file bitmap.cpp.

int Grim::Bitmap::getNumLayers (  )  const

Definition at line 453 of file bitmap.cpp.

int Grim::Bitmap::getNumTex (  )  const [inline]

Definition at line 170 of file bitmap.h.

const Graphics::PixelFormat & Grim::Bitmap::getPixelFormat ( int  num  )  const

Definition at line 470 of file bitmap.cpp.

static int32 Grim::Bitmap::getStaticTag (  )  [inline, static]

Definition at line 140 of file bitmap.h.

void* Grim::Bitmap::getTexIds (  )  const [inline]

Definition at line 169 of file bitmap.h.

int Grim::Bitmap::getWidth (  )  const [inline]

Definition at line 163 of file bitmap.h.

void Grim::Bitmap::restoreState ( SaveGame state  ) 

Definition at line 405 of file bitmap.cpp.

void Grim::Bitmap::saveState ( SaveGame state  )  const

Definition at line 399 of file bitmap.cpp.

void Grim::Bitmap::setActiveImage ( int  n  ) 

Set which image in an animated bitmap to use.

Parameters:
n the image to be selected

Definition at line 438 of file bitmap.cpp.


Member Data Documentation

Specifies a one-based index to the current image in BitmapData.

_currImage==0 means a null image is chosen.

Definition at line 186 of file bitmap.h.

Definition at line 181 of file bitmap.h.


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


Generated on Sat Nov 16 2019 05:02:58 for ResidualVM by doxygen 1.7.1
curved edge   curved edge