#include <savefile.h>
Public Member Functions | |
SavePartSprite (uint32 width, uint32 height, bool trueColor=false) | |
bool | read (Common::ReadStream &stream) override |
bool | write (Common::WriteStream &stream) const override |
bool | readPalette (const byte *palette) |
bool | readSprite (const Surface &sprite) |
bool | readSpriteRaw (const byte *data, uint32 size) |
bool | writePalette (byte *palette) const |
bool | writeSprite (Surface &sprite) const |
Public Member Functions inherited from Gob::SavePart | |
virtual uint32 | getSize () const |
Static Public Attributes | |
static const uint32 | kVersion = 2 |
static const uint32 | kID = MKTAG('S','P','R','T') |
Additional Inherited Members | |
Protected Attributes inherited from Gob::SavePart | |
SaveHeader | _header |
A save part holding a sprite.
|
overridevirtual |
Read the part (with header) out of the stream.
Implements Gob::SavePart.
|
overridevirtual |
Write the part (with header) into the stream.
Implements Gob::SavePart.
bool Gob::SavePartSprite::readPalette | ( | const byte * | palette | ) |
Read a palette into the part.
bool Gob::SavePartSprite::readSprite | ( | const Surface & | sprite | ) |
Read a sprite into the part.
bool Gob::SavePartSprite::readSpriteRaw | ( | const byte * | data, |
uint32 | size | ||
) |
Read size bytes of raw data into the sprite.
bool Gob::SavePartSprite::writePalette | ( | byte * | palette | ) | const |
Write a palette out of the part.
bool Gob::SavePartSprite::writeSprite | ( | Surface & | sprite | ) | const |
Write a sprite out of the part.