#include <cmpfile.h>
Public Member Functions | |
CMPFile (GobEngine *vm, const Common::String &baseName, uint16 width, uint16 height, uint8 bpp=1) | |
CMPFile (GobEngine *vm, const Common::String &cmpFile, const Common::String &rxyFile, uint16 width, uint16 height, uint8 bpp=1) | |
CMPFile (GobEngine *vm, Common::SeekableReadStream &cmp, Common::SeekableReadStream &rxy, uint16 width, uint16 height, uint8 bpp=1) | |
CMPFile (GobEngine *vm, Common::SeekableReadStream &cmp, uint16 width, uint16 height, uint8 bpp=1) | |
bool | empty () const |
uint16 | getSpriteCount () const |
bool | getCoordinates (uint16 sprite, uint16 &left, uint16 &top, uint16 &right, uint16 &bottom) const |
uint16 | getWidth (uint16 sprite) const |
uint16 | getHeight (uint16 sprite) const |
void | getMaxSize (uint16 &width, uint16 &height) const |
void | draw (Surface &dest, uint16 sprite, uint16 x, uint16 y, int32 transp=-1) const |
void | draw (Surface &dest, uint16 left, uint16 top, uint16 right, uint16 bottom, uint16 x, uint16 y, int32 transp=-1) const |
uint16 | addSprite (uint16 left, uint16 top, uint16 right, uint16 bottom) |
void | recolor (uint8 from, uint8 to) |
A CMP file, containing a sprite.
Used in hardcoded "actiony" parts of gob games.