diff options
author | richiesams | 2013-07-29 21:45:53 -0500 |
---|---|---|
committer | richiesams | 2013-08-04 13:32:49 -0500 |
commit | cf9790a9d6407e3bfea46cea1c59abe9ab5de31c (patch) | |
tree | 2b0eb06fb2e79dc9b3ee72df4051e5e5fe3d4858 /engines | |
parent | 7d58ebf2819562893df2f07b916c9712d5b7413f (diff) | |
download | scummvm-rg350-cf9790a9d6407e3bfea46cea1c59abe9ab5de31c.tar.gz scummvm-rg350-cf9790a9d6407e3bfea46cea1c59abe9ab5de31c.tar.bz2 scummvm-rg350-cf9790a9d6407e3bfea46cea1c59abe9ab5de31c.zip |
ZVISION: Create mutators for _tiltOptions
Diffstat (limited to 'engines')
-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(); |