diff options
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/render_table.cpp | 12 | ||||
-rw-r--r-- | engines/zvision/render_table.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp index e3ce77952b..49203df195 100644 --- a/engines/zvision/render_table.cpp +++ b/engines/zvision/render_table.cpp @@ -171,4 +171,16 @@ void RenderTable::setPanoramaScale(float scale) { _panoramaOptions.linearScale = scale; } +void RenderTable::setTiltFoV(float fov) { + assert(fov > 0.0f); + + _tiltOptions.fieldOfView = fov; +} + +void RenderTable::setTiltScale(float scale) { + assert(scale > 0.0f); + + _tiltOptions.linearScale = scale; +} + } // End of namespace ZVision diff --git a/engines/zvision/render_table.h b/engines/zvision/render_table.h index 5698feaa03..ccb5926a51 100644 --- a/engines/zvision/render_table.h +++ b/engines/zvision/render_table.h @@ -67,6 +67,9 @@ public: void setPanoramaFoV(float fov); void setPanoramaScale(float scale); + void setTiltFoV(float fov); + void setTiltScale(float scale); + private: void generatePanoramaLookupTable(); void generateTiltLookupTable(); |