Changeset 10204 in orxonox.OLD for branches/camera/src/world_entities/camera.h
- Timestamp:
- Jan 10, 2007, 1:18:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/camera.h
r10198 r10204 41 41 CameraTarget* getTarget() const { return this->target; }; 42 42 PNode* getTargetNode() const; 43 43 void setTargetNode(PNode* target); 44 44 void setAspectRatio(float aspectRatio); 45 45 void setClipRegion(float nearClip, float farClip); … … 66 66 67 67 void process(const Event &event); 68 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at) 68 69 69 70 private: 70 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at)71 71 72 72 float fovy; //!< The field of view Angle (in degrees). … … 87 87 class CameraTarget : public PNode 88 88 { 89 friend class Camera; 89 friend class Camera; //! The CameraTarget is a friend of Camera. noone else needs a CameraTarget, so noone else can create it. 90 90 ObjectListDeclaration(CameraTarget); 91 91 … … 102 102 void atach(PNode* object); 103 103 Vector iterate(float dt, const Vector* target, const Vector* cam); 104 void translate(float speed, floatdt);104 void translate(float dt); 105 105 void changeSpeed(float speed); 106 106 Vector* rotate(Vector* newPos, float speed); 107 void jump(Vector *newPos);107 void jump(Vector newPos); 108 108 void test(); 109 109 void translateNow(Vector* vec);
Note: See TracChangeset
for help on using the changeset viewer.