Changeset 7347 in orxonox.OLD for trunk/src/world_entities/camera.h
- Timestamp:
- Apr 19, 2006, 1:38:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.h
r7173 r7347 15 15 class Event; 16 16 17 //! an enumerator for different types of view18 typedef enum ViewMode19 {20 VIEW_NORMAL,21 VIEW_BEHIND,22 VIEW_FRONT,23 VIEW_LEFT,24 VIEW_RIGHT,25 VIEW_TOP26 };27 17 28 18 //! Camera … … 32 22 class Camera : public PNode, public EventListener 33 23 { 34 public: 24 public: 25 //! an enumerator for different types of view 26 typedef enum ViewMode 27 { 28 ViewNormal, 29 ViewBehind, 30 ViewFront, 31 ViewLeft, 32 ViewRight, 33 ViewTop 34 }; 35 35 36 Camera(); 36 37 virtual ~Camera(); … … 48 49 void setToFovy(float toFovy) { this->toFovy = toFovy; }; 49 50 50 void setViewMode( ViewMode mode);51 void setViewMode(Camera::ViewMode mode); 51 52 inline const Vector& getViewVector() const { return this->viewVector; } 52 53 inline const Vector& getUpVector() const { return this->upVector; } … … 62 63 void process(const Event &event); 63 64 64 65 private: 65 66 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at) 66 67 … … 71 72 72 73 float toFovy; //!< The fovy-mode to iterate to. 73 ViewModecurrentMode; //!< The ViewMode the camera is in74 Camera::ViewMode currentMode; //!< The ViewMode the camera is in 74 75 75 76 Vector delay; … … 84 85 friend class Camera; //! The CameraTarget is a friend of Camera. noone else needs a CameraTarget, so noone else can create it. 85 86 86 87 private: 87 88 CameraTarget(); 88 89 89 90 public: 90 91 }; 91 92
Note: See TracChangeset
for help on using the changeset viewer.