Last change
on this file since 3635 was
3635,
checked in by bensch, 19 years ago
|
orxonox/trunk: reimplemented the Camera.
Camera is now a PNode and not a WorldEntity. I have taken out all the unnecessary stuff like ELLIPTIC_CAMERA and so on, and now it is more like it should be in the new Framework
|
File size:
682 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 | #include "p_node.h" |
---|
10 | |
---|
11 | class World; |
---|
12 | class CameraTarget; |
---|
13 | |
---|
14 | |
---|
15 | //! Camera |
---|
16 | /** |
---|
17 | This class controls the viewpoint from which the World is rendered. |
---|
18 | */ |
---|
19 | class Camera : public PNode |
---|
20 | { |
---|
21 | private: |
---|
22 | CameraTarget* target; |
---|
23 | |
---|
24 | public: |
---|
25 | Camera(void); |
---|
26 | virtual ~Camera(void); |
---|
27 | |
---|
28 | void lookAt(PNode* target); |
---|
29 | |
---|
30 | PNode* getTarget(); |
---|
31 | void apply (); |
---|
32 | }; |
---|
33 | |
---|
34 | //! A CameraTarget is where the Camera is looking at. |
---|
35 | class CameraTarget : public PNode |
---|
36 | { |
---|
37 | friend class Camera; //! |
---|
38 | |
---|
39 | private: |
---|
40 | CameraTarget(void); |
---|
41 | |
---|
42 | public: |
---|
43 | virtual ~CameraTarget(void); |
---|
44 | }; |
---|
45 | |
---|
46 | |
---|
47 | #endif /* _CAMERA_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.