Changeset 10362 in orxonox.OLD for branches/playability.new/src/world_entities/camera.h
- Timestamp:
- Jan 25, 2007, 3:05:01 AM (17 years ago)
- Location:
- branches/playability.new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability.new
- Property svn:ignore
-
old new 10 10 autom4te.cache 11 11 aclocal.m4 12 tags 13 test.bmp 14 config.sub 15 config.guess 16 OrxonoxPlayability.kdevses 17 OrxonoxPlayability.kdevelop.pcs
-
- Property svn:ignore
-
branches/playability.new/src/world_entities/camera.h
r9869 r10362 36 36 37 37 Camera(); 38 Camera(const TiXmlElement* root); 38 39 virtual ~Camera(); 39 40 … … 43 44 44 45 void setAspectRatio(float aspectRatio); 46 inline float getAspectRatio() {return this->aspectRatio;}; 47 45 48 void setClipRegion(float nearClip, float farClip); 46 49 47 50 /** @param fovy new field of view factor (in degrees) */ 48 void setFovy(float fovy) { this->fovy = fovy; }; 51 inline void setFovy(float fovy) 52 { 53 this->fovy = fovy; 54 this->toFovy = fovy; 55 }; 56 57 inline float getFovy() {return this->fovy;}; 49 58 /** @param fovy new field of view factor (in degrees) to iterate to */ 50 59 void setToFovy(float toFovy) { this->toFovy = toFovy; }; … … 58 67 inline float distance(const PNode* node) const { return distance(node->getAbsCoor()); } 59 68 69 inline void setEventHandling(bool b) {this->eventHandling = b;} 70 inline bool getEventHandling() {return this->eventHandling;} 71 60 72 void tick(float dt); 61 73 void apply (); … … 64 76 void process(const Event &event); 65 77 78 //virtual void loadParams(const TiXmlElement* root); 79 80 void setViewTopFovy(float fovy); 81 void setViewLeftFovy(float fovy); 82 void setViewRightFovy(float fovy); 83 void setViewBehindFovy(float fovy); 84 void setViewFrontFovy(float fovy); 85 void setViewNormalFovy(float fovy); 86 87 void setViewTopDistance(float Distance); 88 void setViewLeftDistance(float Distance); 89 void setViewRightDistance(float Distance); 90 void setViewBehindDistance(float Distance); 91 void setViewFrontDistance(float Distance); 92 void setViewNormalDistance(float Distance); 93 66 94 private: 95 96 void init(); 97 67 98 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at) 99 100 bool eventHandling; //!< True, if the Camera handles the processing of events itself. Set false to overwrite the standard handling. 68 101 69 102 float fovy; //!< The field of view Angle (in degrees). … … 79 112 Vector viewVector; //!< the direction of the camera view 80 113 Vector upVector; //!< direction of the up vector 114 115 float viewTopFovy; 116 float viewLeftFovy; 117 float viewRightFovy; 118 float viewBehindFovy; 119 float viewFrontFovy; 120 float viewNormalFovy; 121 122 float viewTopDistance; 123 float viewLeftDistance; 124 float viewRightDistance; 125 float viewBehindDistance; 126 float viewFrontDistance; 127 float viewNormalDistance; 128 81 129 }; 82 130
Note: See TracChangeset
for help on using the changeset viewer.