diff TaskManager/Test/simple_render/spe/CreatePolygonPack.cpp @ 87:265fb700dd4c

*** empty log message ***
author gongo
date Wed, 27 Feb 2008 11:14:20 +0900
parents 9b96b190cb73
children 504899860e66
line wrap: on
line diff
--- a/TaskManager/Test/simple_render/spe/CreatePolygonPack.cpp	Wed Feb 27 10:56:09 2008 +0900
+++ b/TaskManager/Test/simple_render/spe/CreatePolygonPack.cpp	Wed Feb 27 11:14:20 2008 +0900
@@ -54,26 +54,29 @@
 	    rotate(xyz2, node->translation);
 	    rotate(xyz3, node->translation);
 
-	    pp->tri[pt].x1 = xyz1[0];
-	    pp->tri[pt].y1 = xyz1[1];
-	    pp->tri[pt].z1 = xyz1[2];
-	    pp->tri[pt].tex_x1 = node->texture[nt];
-	    pp->tri[pt].tex_y1 = node->texture[nt+1];
+	    pp->tri[pt].ver1.x = xyz1[0];
+	    pp->tri[pt].ver1.y = xyz1[1];
+	    pp->tri[pt].ver1.z = xyz1[2];
+	    pp->tri[pt].ver1.tex_x = node->texture[nt];
+	    pp->tri[pt].ver1.tex_y = node->texture[nt+1];
 
-	    pp->tri[pt].x2 = xyz2[0];
-	    pp->tri[pt].y2 = xyz2[1];
-	    pp->tri[pt].z2 = xyz2[2];
-	    pp->tri[pt].tex_x2 = node->texture[nt+2];
-	    pp->tri[pt].tex_y2 = node->texture[nt+2+1];
+	    pp->tri[pt].ver2.x = xyz2[0];
+	    pp->tri[pt].ver2.y = xyz2[1];
+	    pp->tri[pt].ver2.z = xyz2[2];
+	    pp->tri[pt].ver2.tex_x = node->texture[nt+2];
+	    pp->tri[pt].ver2.tex_y = node->texture[nt+2+1];
 
-	    pp->tri[pt].x3 = xyz3[0];
-	    pp->tri[pt].y3 = xyz3[1];
-	    pp->tri[pt].z3 = xyz3[2];
-	    pp->tri[pt].tex_x3 = node->texture[nt+4];
-	    pp->tri[pt].tex_y3 = node->texture[nt+4+1];
+	    pp->tri[pt].ver3.x = xyz3[0];
+	    pp->tri[pt].ver3.y = xyz3[1];
+	    pp->tri[pt].ver3.z = xyz3[2];
+	    pp->tri[pt].ver3.tex_x = node->texture[nt+4];
+	    pp->tri[pt].ver3.tex_y = node->texture[nt+4+1];
 
+	    pp->tri[pt].tex_width = node->tex_width;
+            pp->tri[pt].tex_height = node->tex_height;
 	}
 	pp->info.size = pt;
+	pp->ssl = sgp->ssl;
     }
 
     return sizeof(PolygonPack);
@@ -83,7 +86,7 @@
 void
 CreatePolygonPack::rotate(float *xyz, float *matrix)
 {
-#if 0
+#if 1
     float abc[4];
 
     abc[0] = xyz[0];