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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_CAMERA
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_CAMERA
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
4 #include "SceneGraph.h"
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 class Camera : public SceneGraph {
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
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
786e800abfb4 minor fix
Yutaka_Kinjyo
parents: 653
diff changeset
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 float zd[4]; // direction z
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 float yd[4]; // direction y
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18 float fov;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 float near;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 float far;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 float *m_view;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23 float *m_pers;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 float *m_screen;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
25
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
26 void updateView(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
27 void updatePerspective(float w, float h);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
28 void updateScreen(float w, float h);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
30 void setCamera(float *pose);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
34 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
35
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
36 typedef Camera *CameraPtr;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
37
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
38 #endif