#include <bitmap.h>
Classes | |
| struct | Layer |
| struct | Vert |
Public Member Functions | |
| BitmapData (const Common::String &fname) | |
| BitmapData (const Graphics::Surface &buf, int w, int h, const char *fname) | |
| void | freeData () |
| void | load () |
| bool | loadTile (Common::SeekableReadStream *data) |
| bool | loadGrimBm (Common::SeekableReadStream *data) |
| bool | loadTGA (Common::SeekableReadStream *data) |
| const Graphics::Surface & | getImageData (int num) const |
| void | convertToColorFormat (const Graphics::PixelFormat &format) |
| void | convertToColorFormat (int num, const Graphics::PixelFormat &format) |
Static Public Member Functions | |
| static BitmapData * | getBitmapData (const Common::String &fname) |
Public Attributes | |
| Common::String | _fname |
| int | _numImages |
| int | _width |
| int | _height |
| int | _x |
| int | _y |
| int | _format |
| int | _numTex |
| int | _bpp |
| void * | _texIds |
| bool | _hasTransparency |
| bool | _loaded |
| bool | _keepData |
| int | _refCount |
| float * | _texc |
| Vert * | _verts |
| Layer * | _layers |
| uint32 | _numCoords |
| uint32 | _numVerts |
| uint32 | _numLayers |
| Graphics::Surface * | _data |
| void * | _userData |
Static Public Attributes | |
| static Common::HashMap< Common::String, BitmapData * > * | _bitmaps |
This BitmapData class keeps the actual bitmap data and can be shared between Bitmap instances, by using getBitmapData. Bitmap still keeps the data that can change between the instances i.e. _x, _y and _currImage. They are automatically deleted if they are not used by any bitmap anymore.
| bool Grim::BitmapData::loadTile | ( | Common::SeekableReadStream * | data | ) |
Loads an EMI TILE-bitmap.
| data | the data for the TILE. |
| len | the length of the data. |
| void Grim::BitmapData::convertToColorFormat | ( | const Graphics::PixelFormat & | format | ) |
Convert a bitmap to another color-format.
| format | the format to convert to. |
| void Grim::BitmapData::convertToColorFormat | ( | int | num, |
| const Graphics::PixelFormat & | format | ||
| ) |
Convert a bitmap to another color-format.
| format | the format to convert to. |