Mercurial > hg > Members > e085722 > Cerium
annotate Renderer/Test/init_aquarium.cc @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
rev | line source |
---|---|
0 | 1 #include <stdio.h> |
2 #include "lindaapi.h" | |
3 #include "aquarium.pb.h" | |
4 | |
5 int main(int argc, char *argv[]) { | |
6 init_linda(); | |
7 aqua::Width *width = new aqua::Width(); | |
8 width->set_width(0); // 0 ¤Ç½é´ü²½ | |
9 int size = width->ByteSize(); | |
10 unsigned char *msg = (unsigned char *) malloc(sizeof(char) * size); | |
11 width->SerializeToArray(msg, size); | |
12 | |
13 int linda = open_linda_java("localhost", 10000); | |
14 psx_out(linda, 1, msg, size); | |
15 psx_sync_n(); | |
16 delete width; | |
17 | |
18 return 0; | |
19 } |