Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/SceneGraphRoot.h @ 558:b05bae017029
boss1_action
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 18:38:07 +0900 |
parents | 8148c81d2660 |
children | a5fda4e51498 |
comparison
equal
deleted
inserted
replaced
557:ec72b601b71f | 558:b05bae017029 |
---|---|
8 | 8 |
9 class SceneGraphRoot { | 9 class SceneGraphRoot { |
10 public: | 10 public: |
11 /* Constructor, Destructor */ | 11 /* Constructor, Destructor */ |
12 SceneGraphRoot(float w, float h); | 12 SceneGraphRoot(float w, float h); |
13 ~SceneGraphRoot(void); | 13 ~SceneGraphRoot(); |
14 | 14 |
15 /* Variables */ | 15 /* Variables */ |
16 // xml から読み込んだ、オリジナルの SceneGraph | 16 // xml から読み込んだ、オリジナルの SceneGraph |
17 SceneGraphPtr sg_src; | 17 SceneGraphPtr sg_src; |
18 int sg_src_length; | 18 int sg_src_length; |
47 * Functions | 47 * Functions |
48 */ | 48 */ |
49 /* User API */ | 49 /* User API */ |
50 void createFromXMLfile(TaskManager *manager, const char *); | 50 void createFromXMLfile(TaskManager *manager, const char *); |
51 SceneGraphPtr createSceneGraph(int id); | 51 SceneGraphPtr createSceneGraph(int id); |
52 SceneGraphPtr createSceneGraph(void); | 52 SceneGraphPtr createSceneGraph(); |
53 void setSceneData(SceneGraphPtr sg); | 53 void setSceneData(SceneGraphPtr sg); |
54 Pad *getController(void); | 54 Pad *getController(); |
55 SceneGraphIteratorPtr getIterator(void); | 55 SceneGraphIteratorPtr getIterator(); |
56 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); | 56 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); |
57 CameraPtr getCamera(void); | 57 CameraPtr getCamera(); |
58 | 58 |
59 /* Other System API */ | 59 /* Other System API */ |
60 void allExecute(int screen_w, int screen_h); | 60 void allExecute(int screen_w, int screen_h); |
61 void checkRemove(void); | 61 void checkRemove(); |
62 SceneGraphPtr getExecuteSceneGraph(void); | 62 SceneGraphPtr getExecuteSceneGraph(); |
63 SceneGraphPtr getDrawSceneGraph(void); | 63 SceneGraphPtr getDrawSceneGraph(); |
64 void updateControllerState(void); | 64 void updateControllerState(); |
65 | 65 |
66 void speExecute(int screen_w, int screen_h); | 66 void speExecute(int screen_w, int screen_h); |
67 | 67 |
68 /* System API */ | 68 /* System API */ |
69 void registSceneGraph(SceneGraphPtr sg); | 69 void registSceneGraph(SceneGraphPtr sg); |
74 typedef SceneGraphRoot *SceneGraphRootPtr; | 74 typedef SceneGraphRoot *SceneGraphRootPtr; |
75 | 75 |
76 #endif | 76 #endif |
77 | 77 |
78 // 大域変数は無くすこと | 78 // 大域変数は無くすこと |
79 // move に Controller を渡せば必要ないはず... | |
79 extern SceneGraphRootPtr sgroot; | 80 extern SceneGraphRootPtr sgroot; |
80 extern SceneGraphRootPtr sgroot_2; | 81 |
82 /* end */ |