Mercurial > hg > Game > Cerium
annotate Renderer/Test/aquarium.h @ 1767:1a68c05eeadf draft
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Nov 2013 01:28:59 +0900 |
parents | bfddd6c29aad |
children |
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
5c320c85c828
[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; |
5c320c85c828
[Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
868
diff
changeset
|
14 |
5c320c85c828
[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; |
859 | 16 static linda_t linda_addr; |
17 static int linda; | |
863 | 18 static int serial_id; |
868
08ed5e750d78
[aquarium]: update screen scope on linda with protobuf
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
863
diff
changeset
|
19 static int start_x; |
08ed5e750d78
[aquarium]: update screen scope on linda with protobuf
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
863
diff
changeset
|
20 static int width; |
875
5c320c85c828
[Renderer/Test/aquarium] sendable xml object by psx_out()
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
868
diff
changeset
|
21 static char *xml_file_name; |
859 | 22 static void linda_connect(); |
868
08ed5e750d78
[aquarium]: update screen scope on linda with protobuf
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
863
diff
changeset
|
23 static void update_screen_scope(); |
879
72ded98f081e
[Renderer/Test/aquarium] sync object
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
875
diff
changeset
|
24 static void send_position(SceneGraphPtr node); |
72ded98f081e
[Renderer/Test/aquarium] sync object
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
875
diff
changeset
|
25 static void set_position(SceneGraphPtr node, unsigned char *reply); |
881
bfddd6c29aad
cannot load xml of 3rd screen bug fix (include init bug yet)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
879
diff
changeset
|
26 static void update_last_player_id(); |
879
72ded98f081e
[Renderer/Test/aquarium] sync object
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
875
diff
changeset
|
27 void create_my_sg(Viewer *sgroot, SceneGraphPtr parent, int screen_w, int screen_h); |
858 | 28 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); |
29 }; |