Mercurial > hg > Game > Cerium
diff Renderer/Engine/SceneGraphRoot.h @ 759:45f7ab7101ea draft
first of all commit, not work Rendering/Test/create_task
author | hiroki |
---|---|
date | Thu, 04 Feb 2010 14:46:09 +0900 |
parents | 77f936380930 |
children | c0a8af52fa43 |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.h Mon Feb 01 17:08:36 2010 +0900 +++ b/Renderer/Engine/SceneGraphRoot.h Thu Feb 04 14:46:09 2010 +0900 @@ -14,6 +14,9 @@ class Application; +class SceneGraphRoot; +typedef void (*regist_func)(SceneGraphRoot *sgroot); + class SceneGraphRoot { public: /* Constructor, Destructor */ @@ -27,6 +30,7 @@ // Static Singleton // SceneGraphPtr *sg_src; // int sg_src_length; + SceneGraphPtr list; // move, collision 用の SceneGraph (tree) SceneGraphPtr sg_exec_tree; @@ -62,6 +66,19 @@ // fd of Linda taple space int tid; + // move task test flag + int move_finish_flag; + + // 関数ポインタ + regist_func regist; + // application で実行する task + HTaskPtr move_exec_task; + + // とりあえず + int screen_w; + int screen_h; + + /** * Functions */ @@ -72,6 +89,7 @@ SceneGraphPtr createSceneGraph(); SceneGraphPtr createSceneGraph(const char *name); int getSgid(const char *name); + void appTaskRegist(regist_func new_regist); void setSceneData(SceneGraphPtr sg); Pad *getController(); @@ -88,6 +106,8 @@ SceneGraphPtr getExecuteSceneGraph(); SceneGraphPtr getDrawSceneGraph(); void updateControllerState(); + void regist_execute(); + void move_finish(); void speExecute(int screen_w, int screen_h); void speExecute(int screen_w, int screen_h, Application *app);