#include <decfile.h>
Public Member Functions | |
DECFile (GobEngine *vm, const Common::String &fileName, uint16 width, uint16 height, uint8 bpp=1) | |
void | draw (Surface &dest) const |
void | drawBackdrop (Surface &dest) const |
void | drawLayer (Surface &dest, uint16 layer, uint16 part, uint16 x, uint16 y, int32 transp=-1) const |
A DEC file, describing a "decal" (background).
Used in hardcoded "actiony" parts of gob games. The principle is similar to a Static in Scenery (see scenery.cpp), but instead of referencing indices in the sprites array, DECs reference sprites directly by filename.
void Gob::DECFile::draw | ( | Surface & | dest | ) | const |
Draw the background, including all default layer parts.
void Gob::DECFile::drawBackdrop | ( | Surface & | dest | ) | const |
Explicitly draw the backdrop.
void Gob::DECFile::drawLayer | ( | Surface & | dest, |
uint16 | layer, | ||
uint16 | part, | ||
uint16 | x, | ||
uint16 | y, | ||
int32 | transp = -1 |
||
) | const |
Explicitly draw a layer part.