view Renderer/Test_/init_aquarium.cc @ 5:8f445f1bfe66 default tip

3d camera
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 06 Dec 2010 17:20:56 +0900
parents b5b462ac9b3b
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;
}