annotate Renderer/Test/aquarium.h @ 875:157f2ffeb526

[Renderer/Test/aquarium] sendable xml object by psx_out()
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Tue, 06 Jul 2010 09:51:35 +0900
parents 58b4fb8ad77c
children 596009c66065
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
858
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include <math.h>
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include <stdlib.h>
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #include "SceneGraphRoot.h"
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #include "Application.h"
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 #include "MainLoop.h"
859
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
6 typedef struct {
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
7 const char *hostname;
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
8 int port;
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
9 } linda_t;
858
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 class aquarium : public Application {
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 public:
875
157f2ffeb526 [Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
13 static int last_player_id;
157f2ffeb526 [Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
14
157f2ffeb526 [Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
15 static Viewer *sgroot;
157f2ffeb526 [Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
16 static SceneGraphPtr parent;
859
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
17 static linda_t linda_addr;
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
18 static int linda;
863
c26aa4e52258 get serial id
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 859
diff changeset
19 static int serial_id;
868
58b4fb8ad77c [aquarium]: update screen scope on linda with protobuf
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 863
diff changeset
20 static int start_x;
58b4fb8ad77c [aquarium]: update screen scope on linda with protobuf
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 863
diff changeset
21 static int width;
875
157f2ffeb526 [Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
22 static char *xml_file_name;
859
e39f320c4411 linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
23 static void linda_connect();
868
58b4fb8ad77c [aquarium]: update screen scope on linda with protobuf
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 863
diff changeset
24 static void update_screen_scope();
875
157f2ffeb526 [Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
25 void create_my_sg(Viewer *sgroot, int screen_w, int screen_h);
858
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
fdc24fbeaedc Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 };