Mercurial > hg > Members > kono > Cerium
annotate Renderer/Engine/Camera.h @ 751:8b45afad160f
add task/DataLoad task/DataUpdate
author | hiroki |
---|---|
date | Mon, 25 Jan 2010 19:25:40 +0900 |
parents | d0b8860c17f8 |
children |
rev | line source |
---|---|
283 | 1 #ifndef INCLUDED_CAMERA |
2 #define INCLUDED_CAMERA | |
3 | |
507 | 4 #include "SceneGraph.h" |
283 | 5 |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
6 class SceneGraphRoot; |
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
7 |
283 | 8 class Camera : public SceneGraph { |
9 public: | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
10 //Camera(float w = 640, float h = 480, SceneGraphRoot *sgroot); |
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
11 Camera(float w, float h, SceneGraphRoot *sgroot); |
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
12 ~Camera(void); |
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
13 |
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
14 SceneGraphRoot *sgroot; |
283 | 15 |
16 float zd[4]; // direction z | |
17 float yd[4]; // direction y | |
18 float fov; | |
19 float near; | |
20 float far; | |
21 | |
22 float *m_view; | |
23 float *m_pers; | |
24 float *m_screen; | |
25 | |
26 void updateView(void); | |
27 void updatePerspective(float w, float h); | |
28 void updateScreen(float w, float h); | |
29 | |
30 void setCamera(float *pose); | |
31 void update(float screen_w, float screen_h); | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
32 |
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
507
diff
changeset
|
33 //void camera_move(SceneGraphPtr _node, int screen_w, int screen_h); |
283 | 34 }; |
35 | |
36 typedef Camera *CameraPtr; | |
37 | |
38 #endif |