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

This BitmapData class keeps the actual bitmap data and can be shared between Bitmap instances, by using getBitmapData. More...

#include <bitmap.h>

Collaboration diagram for Grim::BitmapData:

List of all members.

Classes

struct  Layer
struct  Vert

Public Member Functions

 BitmapData (const Common::String &fname)
 BitmapData (const Graphics::PixelBuffer &buf, int w, int h, const char *fname)
 BitmapData ()
 ~BitmapData ()
void freeData ()
void load ()
bool loadTile (Common::SeekableReadStream *data)
 Loads an EMI TILE-bitmap.
bool loadGrimBm (Common::SeekableReadStream *data)
bool loadTGA (Common::SeekableReadStream *data)
const Graphics::PixelBuffergetImageData (int num) const
void convertToColorFormat (const Graphics::PixelFormat &format)
 Convert a bitmap to another color-format.
void convertToColorFormat (int num, const Graphics::PixelFormat &format)
 Convert a bitmap to another color-format.

Static Public Member Functions

static BitmapDatagetBitmapData (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
int _colorFormat
void * _texIds
bool _hasTransparency
bool _loaded
bool _keepData
int _refCount
float * _texc
Vert_verts
Layer_layers
uint32 _numCoords
uint32 _numVerts
uint32 _numLayers
Graphics::PixelBuffer_data
void * _userData

Static Public Attributes

static Common::HashMap
< Common::String, BitmapData * > * 
_bitmaps = nullptr

Detailed Description

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.

Definition at line 51 of file bitmap.h.


Constructor & Destructor Documentation

Grim::BitmapData::BitmapData ( const Common::String fname  ) 

Definition at line 57 of file bitmap.cpp.

Grim::BitmapData::BitmapData ( const Graphics::PixelBuffer buf,
int  w,
int  h,
const char *  fname 
)

Definition at line 179 of file bitmap.cpp.

Grim::BitmapData::BitmapData (  ) 

Definition at line 207 of file bitmap.cpp.

Grim::BitmapData::~BitmapData (  ) 

Definition at line 214 of file bitmap.cpp.


Member Function Documentation

void Grim::BitmapData::convertToColorFormat ( const Graphics::PixelFormat format  ) 

Convert a bitmap to another color-format.

Parameters:
format the format to convert to.

Definition at line 485 of file bitmap.cpp.

void Grim::BitmapData::convertToColorFormat ( int  num,
const Graphics::PixelFormat format 
)

Convert a bitmap to another color-format.

Parameters:
format the format to convert to.

Definition at line 474 of file bitmap.cpp.

void Grim::BitmapData::freeData (  ) 

Definition at line 234 of file bitmap.cpp.

BitmapData * Grim::BitmapData::getBitmapData ( const Common::String fname  )  [static]

Definition at line 41 of file bitmap.cpp.

const Graphics::PixelBuffer & Grim::BitmapData::getImageData ( int  num  )  const

Definition at line 367 of file bitmap.cpp.

void Grim::BitmapData::load (  ) 

Definition at line 89 of file bitmap.cpp.

bool Grim::BitmapData::loadGrimBm ( Common::SeekableReadStream data  ) 

Definition at line 112 of file bitmap.cpp.

bool Grim::BitmapData::loadTGA ( Common::SeekableReadStream data  ) 

Definition at line 244 of file bitmap.cpp.

bool Grim::BitmapData::loadTile ( Common::SeekableReadStream data  ) 

Loads an EMI TILE-bitmap.

Parameters:
data the data for the TILE.
len the length of the data.

Definition at line 273 of file bitmap.cpp.


Member Data Documentation

Definition at line 73 of file bitmap.h.

Definition at line 96 of file bitmap.h.

Definition at line 97 of file bitmap.h.

Definition at line 91 of file bitmap.h.

Definition at line 94 of file bitmap.h.

Definition at line 99 of file bitmap.h.

Definition at line 93 of file bitmap.h.

Definition at line 101 of file bitmap.h.

Definition at line 117 of file bitmap.h.

Definition at line 100 of file bitmap.h.

Definition at line 118 of file bitmap.h.

Definition at line 92 of file bitmap.h.

Definition at line 120 of file bitmap.h.

Definition at line 95 of file bitmap.h.

Definition at line 119 of file bitmap.h.

Definition at line 103 of file bitmap.h.

Definition at line 105 of file bitmap.h.

Definition at line 98 of file bitmap.h.

Definition at line 124 of file bitmap.h.

Definition at line 116 of file bitmap.h.

Definition at line 93 of file bitmap.h.

Definition at line 93 of file bitmap.h.

Definition at line 93 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