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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
858
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include <math.h>
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include <stdlib.h>
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #include "SceneGraphRoot.h"
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #include "Application.h"
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 #include "MainLoop.h"
859
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
6 typedef struct {
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
7 const char *hostname;
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
8 int port;
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
9 } linda_t;
858
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 class aquarium : public Application {
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
16 static linda_t linda_addr;
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
17 static int linda;
863
6c08c50c5f7a get serial id
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 859
diff changeset
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
3f45bd7b910a linda connection init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 858
diff changeset
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
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
9f6e29836095 Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 };