Changeset 2707 in orxonox.OLD for orxonox/branches/buerli/src/camera.h
- Timestamp:
- Nov 3, 2004, 12:29:03 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/buerli/src/camera.h
r2551 r2707 10 10 11 11 class WorldEntity; 12 class World; 12 13 13 14 //! Camera 14 15 /** 15 16 17 18 19 16 This class controls the viewpoint from which the World is rendered. To use the 17 Camera it has to be bound to a WorldEntity which serves as the reference focus 18 point. The Camera itself calls the WorldEntity::get_lookat() and 19 World::calc_camera_pos() functions to calculate the position it currently should 20 be in. 20 21 */ 21 22 … … 27 28 Placement actual_place; //!< the Camera's current position 28 29 Placement desired_place; //!< where the Camera should be according to calculations 30 World* world; 29 31 30 32 /* physical system - not needed yet */ … … 49 51 Quaternion *res; 50 52 53 54 CAMERA_MODE cameraMode; //!< saves the camera mode: how the camera follows the entity 55 56 void update_desired_place (); 57 58 public: 59 Camera (World* world); 60 ~Camera (); 61 62 void time_slice (Uint32 deltaT); 63 void apply (); 64 void bind (WorldEntity* entity); 65 void jump (Placement* plc); 51 66 52 CAMERA_MODE cameraMode; //!< saves the camera mode: how the camera follows the entity 53 54 void update_desired_place (); 55 56 public: 57 Camera (); 58 ~Camera (); 59 60 void time_slice (Uint32 deltaT); 61 void apply (); 62 void bind (WorldEntity* entity); 63 void jump (Placement* plc); 67 void setWorld(World* world); 64 68 65 69 };
Note: See TracChangeset
for help on using the changeset viewer.