diff TaskManager/Test/simple_pack/task/create_span.cpp @ 69:c9b973f0673e

*** empty log message ***
author chiaki
date Sun, 17 Feb 2008 23:07:52 +0900
parents 35a6cf176c38
children cf36120bc158
line wrap: on
line diff
--- a/TaskManager/Test/simple_pack/task/create_span.cpp	Sun Feb 17 21:45:07 2008 +0900
+++ b/TaskManager/Test/simple_pack/task/create_span.cpp	Sun Feb 17 23:07:52 2008 +0900
@@ -93,14 +93,19 @@
 
     //add(tex_addr,tex_width,tex_height,x,y,length,start_z,end_z,start_tex_x,end_tex_x,start_tex_y,end_tex_y);
 
-    /*
+
     y += 240;
-    int spu_no = y/80;
+    int spu_no = y/8;
     y -= 240;
-    */
     
-    int spu_no = 0;
+    //int spu_no = 0;
     int c = spl->dline[spu_no].info.size;
+    if(c > 100)
+      {
+	cout << "over c = " << c << endl;
+	c = 0;
+	spl->dline[spu_no].info.size = 0;
+      }
     spl->dline[spu_no].span[c].tex_addr = tex_addr;
     spl->dline[spu_no].span[c].tex_width = tex_width;
     spl->dline[spu_no].span[c].tex_height = tex_height;
@@ -113,9 +118,13 @@
     spl->dline[spu_no].span[c].tex_x2 = end_tex_x;
     spl->dline[spu_no].span[c].tex_y1 = start_tex_y;
     spl->dline[spu_no].span[c].tex_y2 = end_tex_y;
-    spl->dline[spu_no].info.size++;
-
-
+    //if(c < 8)
+      {
+	spl->dline[spu_no].info.size++;
+      }
+      cout << "spu_no : " << spu_no << endl;
+      cout << "size   : " <<spl->dline[spu_no].info.size << endl;
+      cout << endl;
     /*
     int c = sp->info.size;
     sp->span[c].tex_addr = tex_addr;
@@ -150,9 +159,12 @@
   //cout << "create_span:spl->size = " << spl->size << endl;
   //cout << "create_span:spl->dline[0].span = " << spl->dline[0].span << endl;
 
-  for(int i=0; i<spl->size; i++)
+  //for(int i=0; i<spl->size; i++)
+  for(int i=0; i<60; i++)
     {
       spl->dline[i].info.size = 0;
+      //cout << i << endl;
+      //cout << spl->dline[i].info.size << endl;
     }
 
   //sp->info.size = 0;