ZVISION: Add 'reverse' to _tiltOptions and _panoramaOptions to handle Control options

This commit is contained in:
richiesams 2013-07-29 21:53:24 -05:00
parent 48a3a1530d
commit 2063cb711d
2 changed files with 13 additions and 0 deletions

@ -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();