aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.h
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-06 22:03:17 +0000
committerNicola Mettifogo2007-08-06 22:03:17 +0000
commit797f114aacbd34195d8fd58cb989ac0f5daa655d (patch)
treef5723e0afcf6892116e066e36378c56bdbb0755c /engines/parallaction/graphics.h
parentc60fc2202f463c5130361f663d4c8dc5ca77c5bf (diff)
downloadscummvm-rg350-797f114aacbd34195d8fd58cb989ac0f5daa655d.tar.gz
scummvm-rg350-797f114aacbd34195d8fd58cb989ac0f5daa655d.tar.bz2
scummvm-rg350-797f114aacbd34195d8fd58cb989ac0f5daa655d.zip
- Renamed BitBuffer to MaskBuffer
- Added PathBuffer to handle 1-bit buffers for walkable areas - Changed relevant walk code to use PathBuffer objects for querying screen dimensions. svn-id: r28478
Diffstat (limited to 'engines/parallaction/graphics.h')
-rw-r--r--engines/parallaction/graphics.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h
index 66eb5b9f39..499b3a4834 100644
--- a/engines/parallaction/graphics.h
+++ b/engines/parallaction/graphics.h
@@ -146,12 +146,9 @@ enum Fonts {
kFontMenu = 2
};
-struct BitBuffer {
+struct MaskBuffer {
// handles a 2-bit depth buffer used for z-buffering
- // TODO: generalize to handle 1-bit buffers, so that
- // path buffers can be handled as well (use templates?)
-
uint16 w;
uint16 internalWidth;
uint16 h;
@@ -159,10 +156,10 @@ struct BitBuffer {
byte *data;
public:
- BitBuffer() : w(0), internalWidth(0), h(0), data(0) {
+ MaskBuffer() : w(0), internalWidth(0), h(0), data(0) {
}
- ~BitBuffer() {
+ ~MaskBuffer() {
free();
}
@@ -220,7 +217,7 @@ public:
// location
void setBackground(Graphics::Surface *surf);
- void setMask(BitBuffer *buffer);
+ void setMask(MaskBuffer *buffer);
int16 queryMask(int16 v);
void intGrottaHackMask();
void restoreBackground(const Common::Rect& r);
@@ -274,7 +271,7 @@ public:
protected:
Parallaction* _vm;
Graphics::Surface *_buffers[NUM_BUFFERS];
- BitBuffer *_depthMask;
+ MaskBuffer *_depthMask;
static byte _mouseArrow[256];
StaticCnv *_mouseComposedArrow;
Font *_font;
@@ -295,3 +292,4 @@ protected:
#endif
+