Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/Application.h @ 435:cf2704424cc0
ChainCal task fix
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 24 Sep 2009 22:35:46 +0900 |
parents | e8f2eed4042a |
children | bd81b461d2fc |
line wrap: on
line source
#ifndef INCLUDED_APPLICATION #define INCLUDED_APPLICATION #include "SceneGraph.h" typedef void (*move_func)(SceneGraph* node, int screen_w, int screen_h); typedef void (*coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree); class Application { public: Application(); ~Application(); void *propertyPtr; int property_size; void set_move_func(move_func move); void set_coll_func(coll_func coll); void set_move_taskid(int id); // SceneGraphPtr scenegraph_factory(PropertyPtr p); // SceneGraphPtr scenegraph_connector(PropertyPtr p,SceneGraphPtr s); SceneGraphPtr scenegraph_factory(void *p, int size); SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s); abstract void init(TaskManager *manager, int w, int h); int move_taskid; move_func move; coll_func coll; }; typedef Application *Application; #endif