Mercurial > hg > Members > kono > Cerium
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 |
rev | line source |
---|---|
858 | 1 #include <math.h> |
2 #include <stdlib.h> | |
3 #include "SceneGraphRoot.h" | |
4 #include "Application.h" | |
5 #include "MainLoop.h" | |
859 | 6 typedef struct { |
7 const char *hostname; | |
8 int port; | |
9 } linda_t; | |
858 | 10 |
11 class aquarium : public Application { | |
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 | 17 static linda_t linda_addr; |
18 static int linda; | |
863 | 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 | 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 | 26 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); |
27 }; |