Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Camera.h @ 1379:13065ad17328 draft
collada moved but only my mac.
author | e095732 <e095732@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Jan 2012 21:56:32 +0900 |
parents | 786e800abfb4 |
children |
rev | line source |
---|---|
283 | 1 #ifndef INCLUDED_CAMERA |
2 #define INCLUDED_CAMERA | |
3 | |
539 | 4 #include "SceneGraph.h" |
283 | 5 |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
6 class SceneGraphRoot; |
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
7 |
283 | 8 class Camera : public SceneGraph { |
9 public: | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
10 //Camera(float w = 640, float h = 480, SceneGraphRoot *sgroot); |
1143 | 11 Camera(float w, float h, SceneGraphRoot *sgroot, TaskManager *manager); |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
12 ~Camera(void); |
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
13 |
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
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); | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
32 |
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
539
diff
changeset
|
33 //void camera_move(SceneGraphPtr _node, int screen_w, int screen_h); |
283 | 34 }; |
35 | |
36 typedef Camera *CameraPtr; | |
37 | |
38 #endif |