283
|
1 #ifndef INCLUDED_CAMERA
|
|
2 #define INCLUDED_CAMERA
|
|
3
|
507
|
4 #include "SceneGraph.h"
|
283
|
5
|
|
6 class Camera : public SceneGraph {
|
|
7 public:
|
|
8 Camera(float w = 640, float h = 480);
|
|
9 ~Camera(void);
|
|
10
|
|
11 float zd[4]; // direction z
|
|
12 float yd[4]; // direction y
|
|
13 float fov;
|
|
14 float near;
|
|
15 float far;
|
|
16
|
|
17 float *m_view;
|
|
18 float *m_pers;
|
|
19 float *m_screen;
|
|
20
|
|
21 void updateView(void);
|
|
22 void updatePerspective(float w, float h);
|
|
23 void updateScreen(float w, float h);
|
|
24
|
|
25 void setCamera(float *pose);
|
|
26 void update(float screen_w, float screen_h);
|
|
27 };
|
|
28
|
|
29 typedef Camera *CameraPtr;
|
|
30
|
|
31 #endif
|