source:
orxonox.OLD/orxonox/trunk/src/camera.h
@
3635
Last change on this file since 3635 was 3635, checked in by bensch, 19 years ago | |
---|---|
File size: 682 bytes |
Rev | Line | |
---|---|---|
[2096] | 1 | /*! |
2 | \file camera.h | |
3 | \brief Viewpoint controlling class definitions | |
4 | */ | |
[2068] | 5 | |
[3224] | 6 | #ifndef _CAMERA_H |
7 | #define _CAMERA_H | |
[2068] | 8 | |
[3635] | 9 | #include "p_node.h" |
[2100] | 10 | |
[2636] | 11 | class World; |
[3635] | 12 | class CameraTarget; |
[2100] | 13 | |
[3635] | 14 | |
[2096] | 15 | //! Camera |
16 | /** | |
[3635] | 17 | This class controls the viewpoint from which the World is rendered. |
[2096] | 18 | */ |
[3635] | 19 | class Camera : public PNode |
20 | { | |
[2068] | 21 | private: |
[3635] | 22 | CameraTarget* target; |
[2551] | 23 | |
[3635] | 24 | public: |
25 | Camera(void); | |
26 | virtual ~Camera(void); | |
27 | ||
28 | void lookAt(PNode* target); | |
[2551] | 29 | |
[3635] | 30 | PNode* getTarget(); |
31 | void apply (); | |
32 | }; | |
[2068] | 33 | |
[3635] | 34 | //! A CameraTarget is where the Camera is looking at. |
35 | class CameraTarget : public PNode | |
36 | { | |
37 | friend class Camera; //! | |
[2551] | 38 | |
[3635] | 39 | private: |
40 | CameraTarget(void); | |
[2636] | 41 | |
[2068] | 42 | public: |
[3635] | 43 | virtual ~CameraTarget(void); |
44 | }; | |
[2068] | 45 | |
46 | ||
[3224] | 47 | #endif /* _CAMERA_H */ |
Note: See TracBrowser
for help on using the repository browser.