comparison Renderer/Engine/SceneGraphRoot.cc @ 1006:66f1d3d328a7 draft

correct code.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Tue, 26 Oct 2010 17:41:41 +0900
parents 37842bbd35f0
children a9581a9df440
comparison
equal deleted inserted replaced
1005:0f1222a4abc1 1006:66f1d3d328a7
6 #include "sys.h" 6 #include "sys.h"
7 #include "TextureHash.h" 7 #include "TextureHash.h"
8 #include "texture.h" 8 #include "texture.h"
9 #include "Application.h" 9 #include "Application.h"
10 10
11 //取りあえず動かす用 本来はA pplication 側で定義した post_func で値の更新するべき
12 #include "../../../task_dandy/dandy.h"
13 11
14 static int cnt = 0; 12 static int cnt = 0;
15 static const int SGLIST_LENGTH = 138; 13 static const int SGLIST_LENGTH = 138;
16 static int sg_src_size = SGLIST_LENGTH ; 14 static int sg_src_size = SGLIST_LENGTH ;
17 static int sg_src_id = -1; 15 static int sg_src_id = -1;
750 { 748 {
751 int size = node->property_size; 749 int size = node->property_size;
752 void *e = node->propertyptr; 750 void *e = node->propertyptr;
753 int move = node->move_id; 751 int move = node->move_id;
754 PostFunction post_func = node->post_func; 752 PostFunction post_func = node->post_func;
753 /*
755 ObjPropertyPtr property = (ObjPropertyPtr)node->propertyptr; 754 ObjPropertyPtr property = (ObjPropertyPtr)node->propertyptr;
756 property->root = node; 755 property->root = node;
756 */
757 757
758 SceneGraphRoot *sgroottmp = (SceneGraphRoot*)sgroot_; 758 SceneGraphRoot *sgroottmp = (SceneGraphRoot*)sgroot_;
759 759
760 sgroottmp->set_game_task(move, (void*)e, size, post_func); 760 sgroottmp->set_game_task(move, (void*)e, size, post_func);
761 } 761 }
765 { 765 {
766 int size = node->property_size; 766 int size = node->property_size;
767 void *e = node->propertyptr; 767 void *e = node->propertyptr;
768 int move = node->move_id; 768 int move = node->move_id;
769 PostFunction post_func = node->post_func; 769 PostFunction post_func = node->post_func;
770 /*
770 ObjPropertyPtr property = (ObjPropertyPtr)node->propertyptr; 771 ObjPropertyPtr property = (ObjPropertyPtr)node->propertyptr;
771 property->root = node; 772 property->root = node;
773 */
772 774
773 SceneGraphRoot *sgroottmp = (SceneGraphRoot*)sgroot_; 775 SceneGraphRoot *sgroottmp = (SceneGraphRoot*)sgroot_;
774 void *pad = (void*)sgroottmp->getController(); 776 void *pad = (void*)sgroottmp->getController();
775 777
776 sgroottmp->set_game_task(move, (void*)e, pad, size, post_func); 778 sgroottmp->set_game_task(move, (void*)e, pad, size, post_func);