From 2063cb711dce1894125d1cc6bab5a2d27a163be3 Mon Sep 17 00:00:00 2001 From: richiesams Date: Mon, 29 Jul 2013 21:53:24 -0500 Subject: [PATCH] ZVISION: Add 'reverse' to _tiltOptions and _panoramaOptions to handle Control options --- engines/zvision/render_table.cpp | 9 +++++++++ engines/zvision/render_table.h | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp index 49203df195d..adf1d647b7f 100644 --- a/engines/zvision/render_table.cpp +++ b/engines/zvision/render_table.cpp @@ -49,6 +49,7 @@ void RenderTable::setRenderState(RenderState newState) { case PANORAMA: _panoramaOptions.fieldOfView = 27.0f; _panoramaOptions.linearScale = 0.55f; + _panoramaOptions.reverse = false; break; case TILT: @@ -171,6 +172,10 @@ void RenderTable::setPanoramaScale(float scale) { _panoramaOptions.linearScale = scale; } +void RenderTable::setPanoramaReverse(bool reverse) { + _panoramaOptions.reverse = reverse; +} + void RenderTable::setTiltFoV(float fov) { assert(fov > 0.0f); @@ -183,4 +188,8 @@ void RenderTable::setTiltScale(float scale) { _tiltOptions.linearScale = scale; } +void RenderTable::setTiltReverse(bool reverse) { + _tiltOptions.reverse = reverse; +} + } // End of namespace ZVision diff --git a/engines/zvision/render_table.h b/engines/zvision/render_table.h index ccb5926a516..e5535a05443 100644 --- a/engines/zvision/render_table.h +++ b/engines/zvision/render_table.h @@ -50,12 +50,14 @@ private: struct { float fieldOfView; float linearScale; + bool reverse; } _panoramaOptions; // TODO: See if tilt and panorama need to have separate options struct { float fieldOfView; float linearScale; + bool reverse; } _tiltOptions; public: @@ -66,9 +68,11 @@ public: void setPanoramaFoV(float fov); void setPanoramaScale(float scale); + void setPanoramaReverse(bool reverse); void setTiltFoV(float fov); void setTiltScale(float scale); + void setTiltReverse(bool reverse); private: void generatePanoramaLookupTable();