Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/viewer.cpp @ 200:efd7e4712342 draft
fix run_draw
author | gongo@localhost.localdomain |
---|---|
date | Mon, 26 Jan 2009 14:27:45 +0900 |
parents | 1fd0107ebb25 |
children | 9484318b3e8f |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/viewer.cpp Mon Jan 26 14:02:45 2009 +0900 +++ b/TaskManager/Test/test_render/viewer.cpp Mon Jan 26 14:27:45 2009 +0900 @@ -218,7 +218,7 @@ return; } - clean_pixels(); + //clean_pixels(); for (int i = 1; i <= spackList_length; i++) { spackList[i-1].reinit(i*split_screen_h); @@ -251,7 +251,6 @@ #else // SceneGraph(木構造) -> PolygonPack task_create_pp = manager->create_task(TASK_CREATE_PP2); - //task_create_pp->add_param((uint32)scene_graph_viewer); task_create_pp->add_param((uint32)sgroot->getDrawSceneGraph()); task_create_pp->add_param((uint32)ppack); #endif @@ -307,7 +306,7 @@ task_next->set_post(post2runLoop, NULL); ppack->clear(); - + int hoge = 0; for (int i = 0; i < spackList_length; i++) { SpanPack *spack = &spackList[i]; int startx = 1; @@ -328,7 +327,8 @@ (uint32)&pixels[(startx-1) + this->width*(starty-1)]); task_draw->add_param(this->width); } else { - //break; +#if 0 + break; // Draw Background (現在は塗りつぶし) task_draw = manager->create_task(TASK_DRAW_BACK); task_draw->add_param(0xffffffff); @@ -338,6 +338,11 @@ &pixels[(startx-1)+this->width*(k+starty-1)], (endx - startx + 1)*sizeof(int)); } +#else + memset(&pixels[(startx-1)+this->width*(starty-1)], + 0xFF, (this->width)*sizeof(int)*rangey); + break; +#endif } task_draw->add_param(startx);