ScummVM API documentation
Grim::Bitmap Class Reference
Inheritance diagram for Grim::Bitmap:
Grim::PoolObject< Bitmap > Grim::PoolObjectBase

Public Member Functions

 Bitmap (const Common::String &filename)
 
 Bitmap (const Graphics::Surface &buf, int width, int height, const char *filename)
 
const Common::StringgetFilename () const
 
void draw ()
 
void draw (int x, int y)
 
void drawLayer (uint32 layer)
 
void setActiveImage (int n)
 
int getNumImages () const
 
int getNumLayers () const
 
int getActiveImage () const
 
bool getHasTransparency () const
 
int getFormat () const
 
int getWidth () const
 
int getHeight () const
 
const Graphics::SurfacegetData (int num) const
 
const Graphics::SurfacegetData () const
 
BitmapDatagetBitmapData () const
 
void * getTexIds () const
 
int getNumTex () const
 
const Graphics::PixelFormatgetPixelFormat (int num) const
 
void saveState (SaveGame *state) const
 
void restoreState (SaveGame *state)
 
void freeData ()
 
- Public Member Functions inherited from Grim::PoolObject< Bitmap >
void setId (int id)
 
int getId () const override
 
int32 getTag () const override
 

Static Public Member Functions

static int32 getStaticTag ()
 
static Bitmapcreate (const Common::String &filename)
 
- Static Public Member Functions inherited from Grim::PoolObject< Bitmap >
static PoolgetPool ()
 

Public Attributes

BitmapData_data
 
int _currImage
 

Additional Inherited Members

- Static Protected Member Functions inherited from Grim::PoolObject< Bitmap >
static void saveStaticState (SaveGame *state)
 
static void restoreStaticState (SaveGame *state)
 

Constructor & Destructor Documentation

◆ Bitmap()

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

Construct a bitmap from the given data.

filename the filename of the bitmap

Parameters
datathe actual data to construct from
lenthe length of the data

Member Function Documentation

◆ setActiveImage()

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

Set which image in an animated bitmap to use

Parameters
nthe image to be selected

Member Data Documentation

◆ _currImage

int Grim::Bitmap::_currImage

Specifies a one-based index to the current image in BitmapData. _currImage==0 means a null image is chosen.


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