Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/Application.h @ 1033:431936c0cc96
add application main method and task.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 26 Nov 2010 04:32:59 +0900 |
parents | 50220f219341 |
children | b9cd0c88b69a b067fd5d8859 |
line wrap: on
line source
#ifndef INCLUDED_APPLICATION #define INCLUDED_APPLICATION #include "SceneGraph.h" #include "MainLoop.h" #include "viewer.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 Viewer; class Application { public: Application(); virtual ~Application(); virtual void app_main(Viewer *viewer){}; virtual HTaskPtr application_task(HTaskPtr next, Viewer* viewer){return next;}; virtual MainLoopPtr init(Viewer *viewer, int w, int h) = 0; }; #endif