From 8a66ba33cf44600ccc4e2a3267359d2ac952c586 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 13 Jan 2004 10:09:53 +0000 Subject: Moved the rest of the MoviePlayer class into animation.cpp/.h, plus some minor cleanups. (Mostly spacing and indentation). Unfortunately the Ogg Vorbis playback causes ScummVM to crash for me, so I can't say for certain that I didn't break anything. svn-id: r12356 --- sword2/driver/d_draw.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'sword2/driver/d_draw.h') diff --git a/sword2/driver/d_draw.h b/sword2/driver/d_draw.h index f98e77999c..49cc544124 100644 --- a/sword2/driver/d_draw.h +++ b/sword2/driver/d_draw.h @@ -65,27 +65,6 @@ struct MouseAnim { #pragma END_PACK_STRUCTS #endif -class MoviePlayer { -private: - Sword2Engine *_vm; - uint8 *_textSurface; - - void openTextObject(MovieTextObject *obj); - void closeTextObject(MovieTextObject *obj); - void drawTextObject(MovieTextObject *obj); - - void checkPaletteSwitch(AnimationState * st); - - AnimationState * initAnimation(const char *name); - void doneAnimation(AnimationState * st); - bool decodeFrame(AnimationState * st); - -public: - MoviePlayer(Sword2Engine *vm) : _vm(vm), _textSurface(NULL) {} - int32 play(const char *filename, MovieTextObject *text[], uint8 *musicOut); - int32 playDummy(const char *filename, MovieTextObject *text[], uint8 *musicOut); -}; - struct BlockSurface { byte data[BLOCKWIDTH * BLOCKHEIGHT]; bool transparent; -- cgit v1.2.3