From c882283b5ddca0f81987189ca52e93b8c745c7b5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 13 Jan 2003 20:14:23 +0000 Subject: [PATCH] Typo fix if USE_HOME_POSITION. --- include/osg/Camera | 4 +--- src/osg/Camera.cpp | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/osg/Camera b/include/osg/Camera index 0444720c6..8c386c043 100644 --- a/include/osg/Camera +++ b/include/osg/Camera @@ -129,11 +129,9 @@ class SG_EXPORT Camera: public osg::Referenced - - enum LookAtType { - USE_HOME_POSITON, + USE_HOME_POSITION, USE_EYE_AND_QUATERNION, USE_EYE_CENTER_AND_UP }; diff --git a/src/osg/Camera.cpp b/src/osg/Camera.cpp index cac071e61..12cf563fb 100644 --- a/src/osg/Camera.cpp +++ b/src/osg/Camera.cpp @@ -22,7 +22,7 @@ Camera::Camera(DisplaySettings* ds) setPerspective(fovy,1.0,1.0,1000.0); // look at details. - _lookAtType =USE_HOME_POSITON; + _lookAtType =USE_HOME_POSITION; _eye.set(0.0f,0.0f,0.0f); _center.set(0.0f,0.0f,-1.0f); @@ -291,7 +291,7 @@ Matrix Camera::getProjectionMatrix() const void Camera::home() { // OpenGL default position. - _lookAtType = USE_HOME_POSITON; + _lookAtType = USE_HOME_POSITION; _eye.set(0.0f,0.0f,0.0f); _center.set(0.0f,0.0f,-1.0f); _up.set(0.0f,1.0f,0.0f); @@ -442,7 +442,7 @@ Matrix Camera::getModelViewMatrix() const // set up the model view matrix. switch(_lookAtType) { - case(USE_HOME_POSITON): + case(USE_HOME_POSITION): { if (_eyeToModelTransform.valid()) modelViewMatrix.invert(*_eyeToModelTransform);