Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 3, 2005, 1:33:01 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: started documentation of world-entities….
this is not really usefull, because i think, that this will change a lot with development….

File:
1 edited

Legend:

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

    r4414 r4490  
    1515class Event;
    1616
    17 enum ViewMode{VIEW_NORMAL, VIEW_BEHIND, VIEW_FRONT, VIEW_LEFT, VIEW_RIGHT, VIEW_TOP};
     17//! an enumerator for different types of view
     18typedef enum ViewMode{ VIEW_NORMAL,
     19                       VIEW_BEHIND,
     20                       VIEW_FRONT,
     21                       VIEW_LEFT,
     22                       VIEW_RIGHT,
     23                       VIEW_TOP };
    1824
    1925//! Camera
     
    2329class Camera : public PNode, public EventListener
    2430{
    25  private:
    26   CameraTarget* target;            //!< The Target of the Camera (where this Camera Looks at)
    27 
    28   float fovy;                      //!< The field of view Angle (in degrees).
    29   float aspectRatio;               //!< The aspect ratio (width / height).
    30   float nearClip;                  //!< The near clipping plane.
    31   float farClip;                   //!< The far clipping plane.
    32 
    33   Vector toRelCoor;
    34   float toFovy;
    35  
    3631 public:
    3732  Camera(void);
     
    5045
    5146  void process(const Event &event);
     47
     48 private:
     49  CameraTarget*     target;          //!< The Target of the Camera (where this Camera Looks at)
     50
     51  float             fovy;            //!< The field of view Angle (in degrees).
     52  float             aspectRatio;     //!< The aspect ratio (width / height).
     53  float             nearClip;        //!< The near clipping plane.
     54  float             farClip;         //!< The far clipping plane.
     55
     56  Vector toRelCoor;                  //!< The relativeCoordinate to move the camera to.
     57  float toFovy;                      //!< The fovy-mode to iterate to.
    5258};
    5359
Note: See TracChangeset for help on using the changeset viewer.