aboutsummaryrefslogtreecommitdiff
path: root/queen/graphics.h
diff options
context:
space:
mode:
authorGregory Montoir2004-01-09 13:36:37 +0000
committerGregory Montoir2004-01-09 13:36:37 +0000
commit634df6923d644a5de603beb14c5f9720b5ff44fb (patch)
treeb44aebd45f697dfe1c448ee460f204e2fa7945ac /queen/graphics.h
parent93f3c0df348b77d284d66309e36d775df4765c99 (diff)
downloadscummvm-rg350-634df6923d644a5de603beb14c5f9720b5ff44fb.tar.gz
scummvm-rg350-634df6923d644a5de603beb14c5f9720b5ff44fb.tar.bz2
scummvm-rg350-634df6923d644a5de603beb14c5f9720b5ff44fb.zip
renamed some methods and moved some code to Display
svn-id: r12276
Diffstat (limited to 'queen/graphics.h')
-rw-r--r--queen/graphics.h47
1 files changed, 14 insertions, 33 deletions
diff --git a/queen/graphics.h b/queen/graphics.h
index 007d1af81c..bb1bf5716b 100644
--- a/queen/graphics.h
+++ b/queen/graphics.h
@@ -22,7 +22,6 @@
#ifndef QUEENGRAPHICS_H
#define QUEENGRAPHICS_H
-#include "common/str.h"
#include "common/util.h"
#include "queen/defs.h"
#include "queen/structs.h"
@@ -85,13 +84,6 @@ struct BobSlot {
void clear();
};
-struct TextSlot {
- uint16 x;
- uint8 color;
- Common::String text;
- bool outlined;
-};
-
class QueenEngine;
class Graphics {
@@ -100,30 +92,22 @@ public:
Graphics(QueenEngine *vm);
~Graphics();
- void bobSetupControl();
- void bobDraw(const BobSlot *bs, int16 x, int16 y);
- void bobDrawInventoryItem(uint32 frameNum, uint16 x, uint16 y);
- void bobPaste(uint16 objNum, uint16 image);
- void bobShrink(const BobFrame *bf, uint16 percentage);
- void bobClear(uint32 bobNum);
- void bobSortAll();
- void bobDrawAll();
- void bobClearAll();
- void bobStopAll();
+ void unpackControlBank();
+ void setupMouseCursor();
+
+ void drawBob(const BobSlot *bs, int16 x, int16 y);
+ void drawInventoryItem(uint32 frameNum, uint16 x, uint16 y);
+ void pasteBob(uint16 objNum, uint16 image);
+ void shrinkFrame(const BobFrame *bf, uint16 percentage);
+ void clearBob(uint32 bobNum);
+ void sortBobs();
+ void drawBobs();
+ void clearBobs();
+ void stopBobs();
BobSlot *bob(int index);
+ void setBobText(BobSlot *bob, const char *text, int textX, int textY, int color, int flags);
- void bobCustomParallax(uint16 roomNum); // CHECK_PARALLAX()
-
- void bobSetText(BobSlot *bob, const char *text, int textX, int textY, int color, int flags);
-
- void textCurrentColor(uint8 color) { _curTextColor = color; }
- void textSet(uint16 x, uint16 y, const char *text, bool outlined = true); // text()
- void textSetCentered(uint16 y, const char *text, bool outlined = true);
- void textDrawAll(); // drawtext()
- void textClear(uint16 y1, uint16 y2); // blanktexts()
- uint16 textWidth(const char *text) const; // textlen()
- int textCenterX(const char *text) const; // MIDDLE()
- void textColor(uint16 y, uint8 color) { _texts[y].color = color; }
+ void handleParallax(uint16 roomNum);
void setupNewRoom(const char *room, uint16 roomNum, int16 *furniture, uint16 furnitureCount);
@@ -176,9 +160,6 @@ private:
//! used to scale a BobFrame
BobFrame _shrinkBuffer;
- TextSlot _texts[GAME_SCREEN_HEIGHT];
- uint8 _curTextColor;
-
AnimFrame _newAnim[17][30];
uint16 _personFrames[4];