Last change
on this file since 2097 was
2096,
checked in by chris, 21 years ago
|
orxonox/branches/chris: Messed with the Player class, added stuff here and there, debug world now creates a player and bind IO to it. Added some doxygen tags.
|
File size:
870 bytes
|
Rev | Line | |
---|
[2096] | 1 | /*! |
---|
| 2 | \file camera.h |
---|
| 3 | \brief Viewpoint controlling class definitions |
---|
| 4 | */ |
---|
[2068] | 5 | |
---|
| 6 | #ifndef CAMERA_H |
---|
| 7 | #define CAMERA_H |
---|
| 8 | |
---|
[2096] | 9 | //! Camera |
---|
| 10 | /** |
---|
| 11 | This class controls the viewpoint from which the World is rendered. To use the Camera it has |
---|
| 12 | to be bound to a WorldEntity which serves as the reference focus point. The Camera itself calls |
---|
| 13 | the WorldEntity::get_lookat() and World::calc_camera_pos() functions to calculate the position it |
---|
| 14 | currently should be in. |
---|
| 15 | */ |
---|
[2068] | 16 | class Camera { |
---|
| 17 | private: |
---|
[2096] | 18 | WorldEntity* bound; //!< the WorldEntity the Camera is bound to |
---|
| 19 | Placement actual_place; //!< the Camera's current position |
---|
| 20 | Placement desired_place; //!< where the Camera should be according to calculations |
---|
[2068] | 21 | |
---|
| 22 | void update_desired_place (); |
---|
| 23 | |
---|
| 24 | public: |
---|
| 25 | Camera (); |
---|
| 26 | ~Camera (); |
---|
| 27 | |
---|
| 28 | void time_slice (float deltaT); |
---|
| 29 | apply (); |
---|
| 30 | bind (WorldEntity* entity); |
---|
| 31 | jump (Placement* plc); |
---|
| 32 | |
---|
| 33 | }; |
---|
| 34 | |
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.