Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/viewer.cpp @ 133:8f1419174cdf draft
DrawSpan のテクスチャ座標を求める部分で、width と height が逆に使われてた。
add new xml file
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 27 Nov 2008 15:08:10 +0900 |
parents | 40978d4b608a |
children | 91c74dbc32e4 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/viewer.cpp Tue Nov 25 18:19:53 2008 +0900 +++ b/TaskManager/Test/test_render/viewer.cpp Thu Nov 27 15:08:10 2008 +0900 @@ -224,7 +224,7 @@ task_create_sp->add_param(index_start); /** - * ex. screen_height が 480, spenum が 6 の場合、 + * ex. screen_height が 480, spenum が 6 の場合、各SPEのy担当範囲 * [ 1.. 80] [ 81..160] [161..240] * [241..320] [321..400] [401..480] * @@ -247,9 +247,6 @@ task_next->spawn(); } -static int st_rgb = 0xffffff; -static int st_diff = 0x111111; - void Viewer::run_draw(void) { @@ -260,13 +257,6 @@ task_next->set_post(post2runLoop, NULL); ppack->clear(); - - if (frames % 20 == 0) { - st_rgb += st_diff; - } - if (st_rgb >= 0xeeeeee || st_rgb <= 0) { - st_diff = -st_diff; - } unsigned int diff = 0; for (int i = 0; i < spackList_length; i++) { @@ -286,10 +276,8 @@ task_draw->add_inData(spack, sizeof(SpanPack)); } else { // Draw Background (現在は塗りつぶし) - //break; task_draw = manager->create_task(TASK_DRAW_BACK); - task_draw->add_param(0); - //task_draw->add_param(st_rgb); + task_draw->add_param(0xffffff); } for (int k = 0; k < rangey; k++) {