aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/zvision.h
diff options
context:
space:
mode:
authorrichiesams2013-08-14 10:25:50 -0500
committerrichiesams2013-08-14 11:20:04 -0500
commit54f16f2539d619b7cdb4e43d7de03e1f538a1c1f (patch)
tree037a5397b09c2c67098faea0457490a9b964a050 /engines/zvision/zvision.h
parent003b30c77b34c9447bab3927d206101d5f341b4f (diff)
downloadscummvm-rg350-54f16f2539d619b7cdb4e43d7de03e1f538a1c1f.tar.gz
scummvm-rg350-54f16f2539d619b7cdb4e43d7de03e1f538a1c1f.tar.bz2
scummvm-rg350-54f16f2539d619b7cdb4e43d7de03e1f538a1c1f.zip
ZVISION: Create the concept of a working window
The working window is a Rect centered inside the actual window edges. All in-game coordinates are in the working window coordinate system. Also, all images in-game are clipped to the edges of the working window.
Diffstat (limited to 'engines/zvision/zvision.h')
-rw-r--r--engines/zvision/zvision.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h
index bf42bf2621..ca710804b0 100644
--- a/engines/zvision/zvision.h
+++ b/engines/zvision/zvision.h
@@ -64,10 +64,19 @@ public:
~ZVision();
private:
+ enum {
+ WINDOW_WIDTH = 640,
+ WINDOW_HEIGHT = 480,
+ WORKING_WINDOW_WIDTH = 512,
+ WORKING_WINDOW_HEIGHT = 320,
+
+ ROTATION_SCREEN_EDGE_OFFSET = 60,
+ MAX_ROTATION_SPEED = 150 // Pixels per second
+ };
+
Console *_console;
const ZVisionGameDescription *_gameDescription;
- const int _width;
- const int _height;
+ const Common::Rect _workingWindow;
const Graphics::PixelFormat _pixelFormat;
const int _desiredFrameTime;