comparison Renderer/Engine/viewer.h @ 869:bcc81531a672

set_game_task add to SceneGraphRoot.
author tkaito
date Sun, 27 Jun 2010 23:01:44 +0900
parents 649e4cb84683
children 0cd80fa14cd9
comparison
equal deleted inserted replaced
868:58b4fb8ad77c 869:bcc81531a672
58 bool quit_check(); 58 bool quit_check();
59 void quit(); 59 void quit();
60 HTaskPtr initLoop(); 60 HTaskPtr initLoop();
61 61
62 void clean_pixels() {} 62 void clean_pixels() {}
63 63
64 void run_init(TaskManager *manager, Application *app); 64 void run_init(TaskManager *manager, Application *app);
65 void run_loop(HTaskPtr task_next); 65 void run_loop(HTaskPtr task_next);
66 void run_draw(HTaskPtr task_next); 66 void run_draw(HTaskPtr task_next);
67 void run_finish(); 67 void run_finish();
68 void run_move(HTaskPtr task_next); 68 void run_move(HTaskPtr task_next);
86 // void createFromXMLfile(const char *file); 86 // void createFromXMLfile(const char *file);
87 // SceneGraph *createSceneGraph(int id); 87 // SceneGraph *createSceneGraph(int id);
88 // SceneGraph *createSceneGraph(); 88 // SceneGraph *createSceneGraph();
89 // void setSceneData(SceneGraph *g); 89 // void setSceneData(SceneGraph *g);
90 void mainLoop(); 90 void mainLoop();
91
92 void set_game_task(int id, void *property, int size, PostFunction post_func)
93 {
94 sgroot->set_game_task(id, property, size, post_func);
95 }
91 96
92 void createFromXMLmemory(SceneGraph * node, char *data, int len) 97 void createFromXMLmemory(SceneGraph * node, char *data, int len)
93 { 98 {
94 sgroot->createFromXMLmemory(manager, node, data, len); 99 sgroot->createFromXMLmemory(manager, node, data, len);
95 } 100 }