Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Application.h @ 2041:363b7c401c79 draft
Make Rendefing Engine
author | Shin,ichi Uehara |
---|---|
date | Mon, 23 Mar 2015 17:47:12 +0900 |
parents | a8890e363061 |
children |
rev | line source |
---|---|
539 | 1 #ifndef INCLUDED_APPLICATION |
2 #define INCLUDED_APPLICATION | |
3 | |
4 #include "SceneGraph.h" | |
543 | 5 #include "MainLoop.h" |
6 #include "viewer.h" | |
542 | 7 |
8 typedef void (*Move_func)(SceneGraph* node, int screen_w, int screen_h); | |
9 typedef void (*Coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree); | |
539 | 10 |
543 | 11 class Viewer; |
12 | |
539 | 13 class Application { |
14 public: | |
15 Application(); | |
16 virtual ~Application(); | |
1033
a9581a9df440
add application main method and task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
737
diff
changeset
|
17 |
2041 | 18 //virtual bool app_loop(Viewer *viewer){ return 1; /* use all execute */ }; |
19 virtual bool app_loop(Viewer *viewer){ return true; /* use all execute */ }; | |
1033
a9581a9df440
add application main method and task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
737
diff
changeset
|
20 virtual HTaskPtr application_task(HTaskPtr next, Viewer* viewer){return next;}; |
543 | 21 virtual MainLoopPtr init(Viewer *viewer, int w, int h) = 0; |
539 | 22 }; |
23 | |
24 #endif |