From 6ae8218d537a2b627a0abad597d5084c796d1de8 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 28 Dec 2003 15:08:12 +0000 Subject: Hopefully the last big renaming. Now the datatypes have names like "StandardHeader" instead of "_standardHeader". svn-id: r11997 --- sword2/driver/d_draw.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'sword2/driver/d_draw.h') diff --git a/sword2/driver/d_draw.h b/sword2/driver/d_draw.h index 387ffdb355..edcd220ac8 100644 --- a/sword2/driver/d_draw.h +++ b/sword2/driver/d_draw.h @@ -45,7 +45,7 @@ namespace Sword2 { #pragma START_PACK_STRUCTS #endif -struct _mouseAnim { +struct MouseAnim { uint8 runTimeComp; // type of runtime compression used for the // frame data uint8 noAnimFrames; // number of frames in the anim @@ -64,19 +64,19 @@ private: Sword2Engine *_vm; uint8 *_textSurface; - void openTextObject(_movieTextObject *obj); - void closeTextObject(_movieTextObject *obj); - void drawTextObject(_movieTextObject *obj); + void openTextObject(MovieTextObject *obj); + void closeTextObject(MovieTextObject *obj); + void drawTextObject(MovieTextObject *obj); public: MoviePlayer(Sword2Engine *vm) : _vm(vm), _textSurface(NULL) {} - int32 play(char *filename, _movieTextObject *text[], uint8 *musicOut); + int32 play(char *filename, MovieTextObject *text[], uint8 *musicOut); }; -typedef struct { +struct BlockSurface { byte data[BLOCKWIDTH * BLOCKHEIGHT]; bool transparent; -} BlockSurface; +}; class Graphics { friend class MoviePlayer; @@ -109,8 +109,8 @@ private: uint8 _mouseFrame; uint8 *_mouseSprite; - struct _mouseAnim *_mouseAnim; - struct _mouseAnim *_luggageAnim; + struct MouseAnim *_mouseAnim; + struct MouseAnim *_luggageAnim; int32 *_mouseOffsets; int32 *_luggageOffset; @@ -222,19 +222,19 @@ public: void initialiseRenderCycle(void); void startRenderCycle(void); bool endRenderCycle(void); - void renderParallax(_parallax *p, int16 layer); + void renderParallax(Parallax *p, int16 layer); void setLocationMetrics(uint16 w, uint16 h); - int32 initialiseBackgroundLayer(_parallax *p); + int32 initialiseBackgroundLayer(Parallax *p); void closeBackgroundLayer(void); void plotPoint(uint16 x, uint16 y, uint8 colour); void drawLine(int16 x1, int16 y1, int16 x2, int16 y2, uint8 colour); - int32 createSurface(_spriteInfo *s, uint8 **surface); - void drawSurface(_spriteInfo *s, uint8 *surface, Common::Rect *clipRect = NULL); + int32 createSurface(SpriteInfo *s, uint8 **surface); + void drawSurface(SpriteInfo *s, uint8 *surface, Common::Rect *clipRect = NULL); void deleteSurface(uint8 *surface); - int32 drawSprite(_spriteInfo *s); - int32 openLightMask(_spriteInfo *s); + int32 drawSprite(SpriteInfo *s); + int32 openLightMask(SpriteInfo *s); int32 closeLightMask(void); }; -- cgit v1.2.3