|
| Bitmap (const Common::String &filename) |
|
| Bitmap (const Graphics::Surface &buf, int width, int height, const char *filename) |
|
const Common::String & | getFilename () 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::Surface & | getData (int num) const |
|
const Graphics::Surface & | getData () const |
|
BitmapData * | getBitmapData () const |
|
void * | getTexIds () const |
|
int | getNumTex () const |
|
const Graphics::PixelFormat & | getPixelFormat (int num) const |
|
void | saveState (SaveGame *state) const |
|
void | restoreState (SaveGame *state) |
|
void | freeData () |
|
void | setId (int id) |
|
int | getId () const override |
|
int32 | getTag () const override |
|
|
static void | saveStaticState (SaveGame *state) |
|
static void | restoreStaticState (SaveGame *state) |
|
◆ Bitmap()
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 |
◆ setActiveImage()
void Grim::Bitmap::setActiveImage |
( |
int |
n | ) |
|
Set which image in an animated bitmap to use
- Parameters
-
n | the image to be selected |
◆ _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: