- Timestamp:
- Oct 21, 2008, 4:56:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/Camera.h
r1505 r1989 35 35 36 36 #include "OrxonoxPrereqs.h" 37 #include "objects/worldentities/PositionableEntity.h" 37 38 38 39 namespace orxonox 39 40 { 40 class _OrxonoxExport Camera 41 class _OrxonoxExport Camera : public PositionableEntity 41 42 { 42 43 friend class CameraHandler; 43 44 public: 44 Camera( Ogre::SceneNode* node = NULL);45 Camera(); 45 46 virtual ~Camera(); 46 47 void setPositionNode(Ogre::SceneNode* node);48 inline Ogre::SceneNode* getCameraNode() { return this->positionNode_; }49 // maybe also BaseObject50 void setTargetNode(Ogre::SceneNode* obj);51 52 Ogre::Camera* cam_;53 47 54 48 void tick(float dt); 55 49 void update(); 56 inline bool hasFocus() { return this->bHasFocus_; } 50 51 void requestFocus(); 52 inline bool hasFocus() 53 { return this->bHasFocus_; } 54 55 inline void setDrag(bool bDrag) 56 { this->bDrag_ = bDrag; } 57 inline bool getDrag() const 58 { return this->bDrag_; } 57 59 58 60 private: … … 60 62 void setFocus(Ogre::Camera* ogreCam); 61 63 62 private: 63 Ogre::SceneNode* targetNode_; 64 Ogre::SceneNode* positionNode_; 64 Ogre::Camera* cam_; 65 65 Ogre::SceneNode* cameraNode_; 66 66 Ogre::Vector3 oldPos; 67 67 bool bHasFocus_; 68 bool bDrag_; 68 69 }; 69 70 }
Note: See TracChangeset
for help on using the changeset viewer.