Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/Camera.h @ 221:d61fded0729e
Cameraの設定、Makefile 修正
author | gongo@gendarme.local |
---|---|
date | Tue, 10 Feb 2009 01:47:12 +0900 |
parents | 0f1ff7b06157 |
children | 25c820b6060e |
rev | line source |
---|---|
201 | 1 #ifndef INCLUDED_CAMERA |
2 #define INCLUDED_CAMERA | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
3 |
206 | 4 #ifndef INCLUDED_SCENE_GRAPH |
5 # include "SceneGraph.h" | |
6 #endif | |
7 | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
8 class Camera : public SceneGraph { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
9 public: |
221 | 10 Camera(float w = 640, float h = 480); |
11 ~Camera(void); | |
206 | 12 |
219
0f1ff7b06157
allExecute する度に SceneGraph をコピーしていく様に変更
gongo@gendarme.local
parents:
212
diff
changeset
|
13 float zd[4]; // direction z |
0f1ff7b06157
allExecute する度に SceneGraph をコピーしていく様に変更
gongo@gendarme.local
parents:
212
diff
changeset
|
14 float yd[4]; // direction y |
212 | 15 float fov; |
16 float near; | |
17 float far; | |
206 | 18 |
221 | 19 float *m_view; |
20 float *m_pers; | |
21 float *m_screen; | |
212 | 22 |
221 | 23 void updateView(void); |
24 void updatePerspective(float w, float h); | |
25 void updateScreen(float w, float h); | |
219
0f1ff7b06157
allExecute する度に SceneGraph をコピーしていく様に変更
gongo@gendarme.local
parents:
212
diff
changeset
|
26 |
0f1ff7b06157
allExecute する度に SceneGraph をコピーしていく様に変更
gongo@gendarme.local
parents:
212
diff
changeset
|
27 void setCamera(float *pose); |
221 | 28 void update(float screen_w, float screen_h); |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
29 }; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
30 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
31 typedef Camera *CameraPtr; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
32 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
33 #endif |