Changeset 5911 for code/branches/core5/src/orxonox/graphics
- Timestamp:
- Oct 8, 2009, 10:56:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/graphics/Camera.cc
r5738 r5911 38 38 #include "core/CoreIncludes.h" 39 39 #include "core/ConfigValueIncludes.h" 40 #include "core/GameMode.h" 40 41 #include "Scene.h" 41 42 #include "CameraManager.h" … … 49 50 RegisterObject(Camera); 50 51 52 if (!GameMode::showsGraphics()) 53 ThrowException(AbortLoading, "Can't create Camera, no graphics."); 51 54 if (!this->getScene()) 52 55 ThrowException(AbortLoading, "Can't create Camera, no scene."); … … 117 120 void Camera::requestFocus() 118 121 { 119 CameraManager::getInstance().requestFocus(this);122 this->getScene()->getCameraManager()->requestFocus(this); 120 123 } 121 124 122 125 void Camera::releaseFocus() 123 126 { 124 CameraManager::getInstance().releaseFocus(this);127 this->getScene()->getCameraManager()->releaseFocus(this); 125 128 } 126 129 … … 137 140 { 138 141 this->bHasFocus_ = true; 139 CameraManager::getInstance().useCamera(this->camera_);142 this->getScene()->getCameraManager()->useCamera(this->camera_); 140 143 } 141 144
Note: See TracChangeset
for help on using the changeset viewer.