Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/viewer.cpp @ 177:deb02b0e6291 draft
zRow の生成、初期化の変更
author | gongo@localhost.localdomain |
---|---|
date | Tue, 16 Dec 2008 17:16:35 +0900 |
parents | be90197f90d4 |
children | e3b7776b1420 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/viewer.cpp Tue Dec 16 17:01:24 2008 +0900 +++ b/TaskManager/Test/test_render/viewer.cpp Tue Dec 16 17:16:35 2008 +0900 @@ -29,6 +29,8 @@ int spackList_length; int spackList_length_align; +static float *zRow; + /** * */ @@ -204,6 +206,12 @@ } task_next->spawn(); + + zRow=(float*)manager->malloc(sizeof(float)*split_screen_w*split_screen_h); + + for (int i = 0; i < split_screen_w*split_screen_h; i++) { + zRow[i] = 65535.0f; // __FLT_MAX__ とかでも + } } void @@ -325,6 +333,9 @@ // Draw SpanPack task_draw = manager->create_task(TASK_DRAW_SPAN); task_draw->add_inData(spack, sizeof(SpanPack)); + + task_draw->add_inData(zRow, + sizeof(float)*(endx-startx+1)*rangey); } else { // Draw Background (現在は塗りつぶし) task_draw = manager->create_task(TASK_DRAW_BACK);