Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3636 in orxonox.OLD for orxonox/trunk/src/camera.h


Ignore:
Timestamp:
Mar 23, 2005, 12:46:37 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: functions to set gluPerspective-options

File:
1 edited

Legend:

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

    r3635 r3636  
    2020{
    2121 private:
    22   CameraTarget* target;
     22  CameraTarget* target;            //!< The Target of the Camera (where this Camera Looks at)
     23
     24  float fovy;                      //!< The field of view Angle (in degrees).
     25  float aspectRatio;               //!< The aspect ratio (width / height).
     26  float nearClip;                  //!< The near clipping plane.
     27  float farClip;                   //!< The far clipping plane.
    2328 
    2429 public:
     
    2732
    2833  void lookAt(PNode* target);
    29  
    3034  PNode* getTarget();
    31   void apply ();
     35
     36  void setAspectRatio(float aspectRatio);
     37  void setFovy(float fovy);
     38  void setClipRegion(float nearClip, float farClip);
     39
     40  void apply (void);
    3241};
    3342
     
    3544class CameraTarget : public PNode
    3645{
    37   friend class Camera; //!
     46  friend class Camera;             //! The CameraTarget is a friend of Camera. noone else needs a CameraTarget, so noone else can create it.
    3847 
    3948 private:
Note: See TracChangeset for help on using the changeset viewer.