mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-14 05:30:53 +00:00
ZVISION: Add 'reverse' to _tiltOptions and _panoramaOptions to handle Control options
This commit is contained in:
parent
48a3a1530d
commit
2063cb711d
engines/zvision
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user