Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Application.h @ 1161:cc1a50cac83d draft
use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author | Yutaka_Kinjyo |
---|---|
date | Thu, 05 May 2011 00:15:43 +0900 |
parents | a8890e363061 |
children | 363b7c401c79 |
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 |
1044 | 18 virtual bool app_loop(Viewer *viewer){ return 1; /* use all execute */ }; |
1033
a9581a9df440
add application main method and task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
737
diff
changeset
|
19 virtual HTaskPtr application_task(HTaskPtr next, Viewer* viewer){return next;}; |
543 | 20 virtual MainLoopPtr init(Viewer *viewer, int w, int h) = 0; |
539 | 21 }; |
22 | |
23 #endif |