Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7347 in orxonox.OLD for trunk/src/world_entities/camera.h


Ignore:
Timestamp:
Apr 19, 2006, 1:38:23 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some more stuff (now one can play around with them using the Shell →
GameWorld Urban Playmode …. Vertical/Full3D/Horizontal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.h

    r7173 r7347  
    1515class Event;
    1616
    17 //! an enumerator for different types of view
    18 typedef enum ViewMode
    19 {
    20   VIEW_NORMAL,
    21   VIEW_BEHIND,
    22   VIEW_FRONT,
    23   VIEW_LEFT,
    24   VIEW_RIGHT,
    25   VIEW_TOP
    26 };
    2717
    2818//! Camera
     
    3222class Camera : public PNode, public EventListener
    3323{
    34  public:
     24public:
     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
    3536  Camera();
    3637  virtual ~Camera();
     
    4849  void setToFovy(float toFovy) { this->toFovy = toFovy; };
    4950
    50   void setViewMode(ViewMode mode);
     51  void setViewMode(Camera::ViewMode mode);
    5152  inline const Vector& getViewVector() const { return this->viewVector; }
    5253  inline const Vector& getUpVector() const { return this->upVector; }
     
    6263  void process(const Event &event);
    6364
    64  private:
     65private:
    6566  CameraTarget*     target;          //!< The Target of the Camera (where this Camera Looks at)
    6667
     
    7172
    7273  float             toFovy;          //!< The fovy-mode to iterate to.
    73   ViewMode          currentMode;     //!< The ViewMode the camera is in
     74  Camera::ViewMode  currentMode;     //!< The ViewMode the camera is in
    7475
    7576  Vector            delay;
     
    8485  friend class Camera;             //! The CameraTarget is a friend of Camera. noone else needs a CameraTarget, so noone else can create it.
    8586
    86  private:
     87private:
    8788  CameraTarget();
    8889
    89  public:
     90public:
    9091};
    9192
Note: See TracChangeset for help on using the changeset viewer.