annotate Magoroku.h @ 124:6ef3b0efdeaf

test
author e085768
date Thu, 30 Jun 2011 12:43:18 +0900
parents 5219bf3d5e71
children d9e3137e70a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
106
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #ifndef INCLUDE_MAGOROKU_H
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #define INCLUDE_MAGOROKU_H
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #include "TaskManager.h"
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 #include "SceneGraph.h"
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 #include "Application.h"
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 #include "MainLoop.h"
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 #include "Func.h"
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 class Magoroku : public Application {
115
31dd5c07f7c1 class OBJECT:SceanGraph
e085768
parents: 106
diff changeset
11 bool app_loop(Viewer *viewer);
31dd5c07f7c1 class OBJECT:SceanGraph
e085768
parents: 106
diff changeset
12 HTaskPtr application_task(HTaskPtr next, Viewer* viewer);
31dd5c07f7c1 class OBJECT:SceanGraph
e085768
parents: 106
diff changeset
13 MainLoopPtr init(Viewer *viewer, int w, int h);
106
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 };
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 extern Viewer *droot;
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 typedef void (*move)(SceneGraphPtr node, void *sgroot_, int w, int h);
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 typedef void (*coll)(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
0c4b7d74e292 add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 #endif
122
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
22
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
23 // 初期設定の画面サイズ
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
24 #define SCREEN_W 640
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
25 #define SCREEN_H 480
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
26
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
27 int getScreen_W ();
5219bf3d5e71 title_draw
e085768
parents: 115
diff changeset
28 int getScreen_H ();