diff options
author | Alyssa Milburn | 2011-07-14 23:36:49 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-07-14 23:36:49 +0200 |
commit | 3935b3ed6be6bde5272b0d84a3dbe0df54f205fc (patch) | |
tree | 84cea0660339a7dfac9aab50a7d1889d9002084f /engines/composer/composer.h | |
parent | 40a6c232e9169a9cfe0d6a698b728c8565cd8959 (diff) | |
download | scummvm-rg350-3935b3ed6be6bde5272b0d84a3dbe0df54f205fc.tar.gz scummvm-rg350-3935b3ed6be6bde5272b0d84a3dbe0df54f205fc.tar.bz2 scummvm-rg350-3935b3ed6be6bde5272b0d84a3dbe0df54f205fc.zip |
COMPOSER: Manage/render sprites.
Diffstat (limited to 'engines/composer/composer.h')
-rw-r--r-- | engines/composer/composer.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/composer/composer.h b/engines/composer/composer.h index 5d4233a1ba..e535bfbc6e 100644 --- a/engines/composer/composer.h +++ b/engines/composer/composer.h @@ -59,7 +59,11 @@ enum GameType { class Archive; class ComposerEngine; -class Sprite { +struct Sprite { + uint16 id; + uint16 animId; + uint16 zorder; + Common::Point pos; }; struct AnimationEntry { @@ -158,6 +162,8 @@ private: Audio::QueuingAudioStream *_audioStream; Graphics::Surface _surface; + Common::List<Sprite> _sprites; + Common::ConfigFile _bookIni; Common::List<Library> _libraries; @@ -187,8 +193,11 @@ private: void playWaveForAnim(uint16 id, bool bufferingOnly); void processAnimFrame(); + void addSprite(uint16 id, uint16 animId, uint16 zorder, const Common::Point &pos); + void removeSprite(uint16 id, uint16 animId); + void loadCTBL(uint id, uint fadePercent); - void decompressBitmap(uint16 type, Common::SeekableReadStream *stream, byte *buffer, uint32 size); + void decompressBitmap(uint16 type, Common::SeekableReadStream *stream, byte *buffer, uint32 size, uint width, uint height); void drawBMAP(uint id, uint x, uint y); }; |