diff Renderer/Test/init_aquarium.cc @ 867:9b25de3bb8de draft

add init_aquarium with protobuf
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Jun 2010 12:52:25 +0900
parents
children 08ed5e750d78
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Test/init_aquarium.cc	Tue Jun 22 12:52:25 2010 +0900
@@ -0,0 +1,18 @@
+#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();
+	
+	return 0;
+}