Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/Camera.h @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | Renderer/test_render/Camera.h@55ea4465b1a2 |
children | d0b8860c17f8 |
comparison
equal
deleted
inserted
replaced
506:1d4a8a86f26b | 507:735f76483bb2 |
---|---|
1 #ifndef INCLUDED_CAMERA | |
2 #define INCLUDED_CAMERA | |
3 | |
4 #include "SceneGraph.h" | |
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 |