Mercurial > hg > Members > kono > Cerium
changeset 600:b480cec5af53
linda not work
author | kazz@e065701.local |
---|---|
date | Fri, 06 Nov 2009 18:22:15 +0900 |
parents | e923249c318a |
children | 8782cc4171b7 |
files | Renderer/Test/dynamic_create.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Test/dynamic_create.cc Thu Nov 05 22:22:10 2009 +0900 +++ b/Renderer/Test/dynamic_create.cc Fri Nov 06 18:22:15 2009 +0900 @@ -85,16 +85,16 @@ { // LindaServerから座標データを取得してオブジェクトに反映させる。 // static int seq = 0; - float *reply; +// float *reply; // if (seq == 0) // seq = psx_wait_rd(sgroot->tid, node->id * 10 + 1); - unsigned char reply = psx_reply(node->seq); + unsigned char *reply = psx_reply(node->seq); if (reply != NULL) { - float *data = (float *)(reply + LINDA_HEADER_SIZE); - // ntoh_float(&data[0]); ntoh_float(&data[1]); + float *data = (float *)(reply + LINDA_HEADER_SIZE); + // ntoh_float(&data[0]); ntoh_float(&data[1]); for (int i = 0; i < 3; i++) { - node->xyz[i] = data[i]; + node->xyz[i] = ntohl(data[i]); } node->seq = psx_wait_rd(sgroot->tid, node->id * 10 + 1); }