changeset 1297:f20e6e6500db draft

minor change
author Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
date Fri, 02 Dec 2011 15:33:53 +0900
parents 4a33b2e340a9
children bb8b7f179f31
files Renderer/Engine/SceneGraphRoot.cc Renderer/Engine/task/CreatePolygonFromSceneGraph.cc
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc	Fri Dec 02 15:07:21 2011 +0900
+++ b/Renderer/Engine/SceneGraphRoot.cc	Fri Dec 02 15:33:53 2011 +0900
@@ -280,7 +280,8 @@
 static void 
 xml_walk( SceneGraphRoot* self, xmlNodePtr cur)
 {
-	 /*get float array.*/
+
+        /*get float array.*/
 	printf("name = %s, child:%s\n", cur->name, cur->children);
 	if (!xmlStrcmp(cur->name, (xmlChar*)"float_array")) {
 
@@ -302,6 +303,7 @@
 	for (cur=cur->children; cur; cur=cur->next){
             xml_walk(self, cur);
 	}
+
 }	
 
 void
--- a/Renderer/Engine/task/CreatePolygonFromSceneGraph.cc	Fri Dec 02 15:07:21 2011 +0900
+++ b/Renderer/Engine/task/CreatePolygonFromSceneGraph.cc	Fri Dec 02 15:33:53 2011 +0900
@@ -72,10 +72,10 @@
     PolygonPackPtr in_pp      = (PolygonPackPtr)smanager->get_input(rbuf, 0);
     float *matrix             = (float*)smanager->get_input(rbuf, 1);
 
-    //float real_matrix[16]; //        = (float*)smanager->get_input(rbuf, 2);
+    float real_matrix[16]; //        = (float*)smanager->get_input(rbuf, 2);
     //float *real_matrix = (float*)smanager->get_input(rbuf, 2);
   
-    //for (int i = 0; i<16; i++) real_matrix[i]=matrix[i];
+    for (int i = 0; i<16; i++) real_matrix[i]=matrix[i];
     real_matrix[4*0+3]=real_matrix[4*1+3]=real_matrix[4*2+3]=0;
 
     texture_list *tritexinfo  = (texture_list*)smanager->get_input(rbuf, 3);