Changeset 10270 in orxonox.OLD for branches/playability/src/world_entities/camera.h
- Timestamp:
- Jan 17, 2007, 5:52:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/camera.h
r10237 r10270 36 36 37 37 Camera(); 38 Camera(const TiXmlElement* root); 38 39 virtual ~Camera(); 39 40 … … 46 47 47 48 /** @param fovy new field of view factor (in degrees) */ 48 void setFovy(float fovy) { this->fovy = fovy; }; 49 inline void setFovy(float fovy) 50 { 51 this->fovy = fovy; 52 this->toFovy = fovy; 53 }; 49 54 /** @param fovy new field of view factor (in degrees) to iterate to */ 50 55 void setToFovy(float toFovy) { this->toFovy = toFovy; }; … … 67 72 void process(const Event &event); 68 73 74 //virtual void loadParams(const TiXmlElement* root); 75 76 void setViewTopFovy(float fovy); 77 void setViewLeftFovy(float fovy); 78 void setViewRightFovy(float fovy); 79 void setViewBehindFovy(float fovy); 80 void setViewFrontFovy(float fovy); 81 void setViewNormalFovy(float fovy); 82 83 void setViewTopDistance(float Distance); 84 void setViewLeftDistance(float Distance); 85 void setViewRightDistance(float Distance); 86 void setViewBehindDistance(float Distance); 87 void setViewFrontDistance(float Distance); 88 void setViewNormalDistance(float Distance); 89 69 90 private: 91 92 void init(); 93 70 94 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at) 71 95 … … 84 108 Vector viewVector; //!< the direction of the camera view 85 109 Vector upVector; //!< direction of the up vector 110 111 float viewTopFovy; 112 float viewLeftFovy; 113 float viewRightFovy; 114 float viewBehindFovy; 115 float viewFrontFovy; 116 float viewNormalFovy; 117 118 float viewTopDistance; 119 float viewLeftDistance; 120 float viewRightDistance; 121 float viewBehindDistance; 122 float viewFrontDistance; 123 float viewNormalDistance; 124 86 125 }; 87 126
Note: See TracChangeset
for help on using the changeset viewer.