aboutsummaryrefslogtreecommitdiff
path: root/scumm/wiz_he.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-05-23 02:00:49 +0000
committerEugene Sandulenko2005-05-23 02:00:49 +0000
commitb9e8e4080559f0ce9b249d3fb4c39db1431692f0 (patch)
tree795aef28cb3fdae36054ed096b2cfee8adc9f694 /scumm/wiz_he.h
parentf7e418d6384236c66ecb88190f815e0380d71382 (diff)
downloadscummvm-rg350-b9e8e4080559f0ce9b249d3fb4c39db1431692f0.tar.gz
scummvm-rg350-b9e8e4080559f0ce9b249d3fb4c39db1431692f0.tar.bz2
scummvm-rg350-b9e8e4080559f0ce9b249d3fb4c39db1431692f0.zip
Turn Wiz struct into class as requested.
svn-id: r18224
Diffstat (limited to 'scumm/wiz_he.h')
-rw-r--r--scumm/wiz_he.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/scumm/wiz_he.h b/scumm/wiz_he.h
index 3a815f8db3..2cffc6a86b 100644
--- a/scumm/wiz_he.h
+++ b/scumm/wiz_he.h
@@ -133,7 +133,10 @@ enum WizProcessFlags {
kWPFMaskImg = 0x80000
};
-struct Wiz {
+class ScummEngine_v70he;
+
+class Wiz {
+public:
enum {
NUM_POLYGONS = 200,
NUM_IMAGES = 255
@@ -143,7 +146,8 @@ struct Wiz {
uint16 _imagesNum;
WizPolygon _polygons[NUM_POLYGONS];
- Wiz();
+ Wiz(ScummEngine_v70he *vm);
+
void clearWizBuffer();
Common::Rect _rectOverride;
bool _rectOverrideEnabled;
@@ -168,6 +172,9 @@ struct Wiz {
uint8 getRawWizPixelColor(const uint8 *data, int x, int y, int w, int h, uint8 color);
void computeWizHistogram(uint32 *histogram, const uint8 *data, const Common::Rect *srcRect);
void computeRawWizHistogram(uint32 *histogram, const uint8 *data, int srcPitch, const Common::Rect *srcRect);
+
+private:
+ ScummEngine_v70he *_vm;
};
} // End of namespace Scumm