Public Member Functions | |
DoodleDecoder (const byte *palette) | |
bool | loadStream (Common::SeekableReadStream &stream) override |
void | destroy () override |
const Graphics::Surface * | getSurface () const override |
const Graphics::Palette & | getPalette () const override |
bool | loadStreams (Common::SeekableReadStream &highresStream, Common::SeekableReadStream &colorStream1, Common::SeekableReadStream &colorStream2) |
![]() | |
virtual bool | hasPalette () const |
virtual bool | hasTransparentColor () const |
virtual uint32 | getTransparentColor () const |
virtual const Graphics::Surface * | getMask () const |
virtual bool | hasMask () const |
Image::DoodleDecoder::DoodleDecoder | ( | const byte * | palette | ) |
Constructor for the DoodleDecoder
palette | Pointer to RGB palette data (16 colors * 3 components) |
|
overridevirtual |
Load an image from the specified stream.
loadStream() should implicitly call destroy() to free the memory of the last loadStream() call.
stream | Input stream. |
Implements Image::ImageDecoder.
|
overridevirtual |
Destroy this decoder's surface and palette.
This should be called by a loadStream() implementation as well as by the destructor.
Implements Image::ImageDecoder.
|
inlineoverridevirtual |
Get the decoded surface.
This surface is owned by this ImageDecoder and remains valid until destroy() or loadStream() is called, or until the destructor of this ImageDecoder is called.
Implements Image::ImageDecoder.
|
inlineoverridevirtual |
Get the decoded palette.
This palette is owned by this ImageDecoder and remains valid until destroy() or loadStream() is called, or until the destructor of this ImageDecoder is called.
Implements Image::ImageDecoder.
bool Image::DoodleDecoder::loadStreams | ( | Common::SeekableReadStream & | highresStream, |
Common::SeekableReadStream & | colorStream1, | ||
Common::SeekableReadStream & | colorStream2 | ||
) |
Load a C64 doodle image from its component streams
highresStream | Stream containing high-resolution pixel data |
colorStream1 | Stream containing first color data file |
colorStream2 | Stream containing second color data file |