Mercurial > hg > Game > Cerium
view Renderer/Test/init_aquarium.cc @ 868:08ed5e750d78 draft
[aquarium]: update screen scope on linda with protobuf
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Jun 2010 16:10:28 +0900 |
parents | 9b25de3bb8de |
children |
line wrap: on
line source
#include <stdio.h> #include "lindaapi.h" #include "aquarium.pb.h" int main(int argc, char *argv[]) { init_linda(); aqua::Width *width = new aqua::Width(); width->set_width(0); // 0 ¤Ç½é´ü²½ int size = width->ByteSize(); unsigned char *msg = (unsigned char *) malloc(sizeof(char) * size); width->SerializeToArray(msg, size); int linda = open_linda_java("localhost", 10000); psx_out(linda, 1, msg, size); psx_sync_n(); delete width; return 0; }