Changeset 5924 for code/branches/core5/src/orxonox/graphics
- Timestamp:
- Oct 9, 2009, 6:04:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/graphics/Camera.cc
r5916 r5924 38 38 #include "core/CoreIncludes.h" 39 39 #include "core/ConfigValueIncludes.h" 40 #include "core/G ameMode.h"40 #include "core/GUIManager.h" 41 41 #include "Scene.h" 42 42 #include "CameraManager.h" … … 50 50 RegisterObject(Camera); 51 51 52 if (!GameMode::showsGraphics())53 ThrowException(AbortLoading, "Can't create Camera, no graphics.");54 52 if (!this->getScene()) 55 53 ThrowException(AbortLoading, "Can't create Camera, no scene."); … … 78 76 if (this->isInitialized()) 79 77 { 78 if( GUIManager::getInstance().getCamera() == this->camera_ ) 79 GUIManager::getInstance().setCamera( NULL ); 80 80 this->releaseFocus(); 81 81 … … 120 120 void Camera::requestFocus() 121 121 { 122 this->getScene()->getCameraManager()->requestFocus(this);122 CameraManager::getInstance().requestFocus(this); 123 123 } 124 124 125 125 void Camera::releaseFocus() 126 126 { 127 this->getScene()->getCameraManager()->releaseFocus(this);127 CameraManager::getInstance().releaseFocus(this); 128 128 } 129 129 … … 140 140 { 141 141 this->bHasFocus_ = true; 142 this->getScene()->getCameraManager()->useCamera(this->camera_);142 CameraManager::getInstance().useCamera(this->camera_); 143 143 } 144 144
Note: See TracChangeset
for help on using the changeset viewer.