Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/simple_pack/viewer.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/viewer.cpp Sun Feb 17 21:45:07 2008 +0900 +++ b/TaskManager/Test/simple_pack/viewer.cpp Sun Feb 17 23:07:52 2008 +0900 @@ -245,19 +245,19 @@ arg->pp = new PolygonPack; arg->sp = new SPANPACK; arg->spl = new SPANPACKLIST; - arg->spl->size = 6; + arg->spl->size = 60; + cout << sizeof(SPANPACKLIST) << endl; //cout << "run_init :spl->size = " << arg->spl->size << endl; //arg->spl->dline = arg->sps; - /* + /* arg->spl->dline[0].span = arg->s1; arg->spl->dline[1].span = arg->s2; arg->spl->dline[2].span = arg->s3; arg->spl->dline[3].span = arg->s4; arg->spl->dline[4].span = arg->s5; arg->spl->dline[5].span = arg->s6; + cout << "run_init :spl->dline[0].span = " << arg->spl->dline[0].span << endl; */ - //cout << "run_init :spl->dline[0].span = " << arg->spl->dline[0].span << endl; - /* for(int i=0; i<arg->spl->size; i++) { @@ -373,8 +373,13 @@ //arg->p->draw(arg->pp); // test draw of PolygonPack //arg->p->draw(arg->sp); // test draw of SpanPack - arg->p->draw(&arg->spl->dline[0]); // test draw of SpanPackList - + //arg->p->draw(&arg->spl->dline[0]); // test draw of SpanPackList + + for(int i=0; i<60; i++) + { + arg->p->draw(&arg->spl->dline[i]); // test draw of SpanPackList + } + SDL_BlitSurface(arg->bitmap, NULL, screen, NULL); SDL_UpdateRect(screen, 0, 0, 0, 0);