mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 02:16:56 +02:00
Inline setFieldOfView
This commit is contained in:
parent
e4591e0d03
commit
7a03daa76f
2 changed files with 1 additions and 5 deletions
|
@ -34,10 +34,6 @@ void ViewFrustum::setOrientation(const glm::quat& orientationAsQuaternion) {
|
||||||
_direction = glm::vec3(orientationAsQuaternion * glm::vec4(IDENTITY_FRONT, 0.0f));
|
_direction = glm::vec3(orientationAsQuaternion * glm::vec4(IDENTITY_FRONT, 0.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewFrustum::setFieldOfView(float f) {
|
|
||||||
_fieldOfView = f;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ViewFrustum::calculateViewFrustum()
|
// ViewFrustum::calculateViewFrustum()
|
||||||
//
|
//
|
||||||
// Description: this will calculate the view frustum bounds for a given position and direction
|
// Description: this will calculate the view frustum bounds for a given position and direction
|
||||||
|
|
|
@ -51,7 +51,7 @@ public:
|
||||||
void setOrthographic(bool orthographic) { _orthographic = orthographic; }
|
void setOrthographic(bool orthographic) { _orthographic = orthographic; }
|
||||||
void setWidth(float width) { _width = width; }
|
void setWidth(float width) { _width = width; }
|
||||||
void setHeight(float height) { _height = height; }
|
void setHeight(float height) { _height = height; }
|
||||||
void setFieldOfView(float f);
|
void setFieldOfView(float f) { _fieldOfView = f; }
|
||||||
void setAspectRatio(float a) { _aspectRatio = a; }
|
void setAspectRatio(float a) { _aspectRatio = a; }
|
||||||
void setNearClip(float n) { _nearClip = n; }
|
void setNearClip(float n) { _nearClip = n; }
|
||||||
void setFarClip(float f) { _farClip = f; }
|
void setFarClip(float f) { _farClip = f; }
|
||||||
|
|
Loading…
Reference in a new issue