Last change
on this file since 2096 was
2096,
checked in by chris, 20 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
|
Line | |
---|
1 | /*! |
---|
2 | \file camera.h |
---|
3 | \brief Viewpoint controlling class definitions |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef CAMERA_H |
---|
7 | #define CAMERA_H |
---|
8 | |
---|
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 | */ |
---|
16 | class Camera { |
---|
17 | private: |
---|
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 |
---|
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.