Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/viewer.cc @ 891:dd0801f355a2
..
author | Yutaka_Kinjyo |
---|---|
date | Thu, 15 Jul 2010 18:13:22 +0900 |
parents | b150914f5976 |
children | bed529c55eda |
comparison
equal
deleted
inserted
replaced
890:baae338d91da | 891:dd0801f355a2 |
---|---|
468 SceneGraphPtr sg = sgroot->getDrawSceneGraph(); | 468 SceneGraphPtr sg = sgroot->getDrawSceneGraph(); |
469 PolygonPackPtr pp_cur = ppack; | 469 PolygonPackPtr pp_cur = ppack; |
470 HTaskPtr create_pp_wait = manager->create_task(Dummy); | 470 HTaskPtr create_pp_wait = manager->create_task(Dummy); |
471 int pp_index = 0; | 471 int pp_index = 0; |
472 | 472 |
473 pp_cur->init(); | |
474 | |
473 task_next->wait_for(create_pp_wait); | 475 task_next->wait_for(create_pp_wait); |
474 | 476 |
475 while (sg) { | 477 while (sg) { |
476 | 478 |
477 if (sg->flag_drawable) { | 479 if (sg->flag_drawable) { |
489 tri_cur_num = MAX_SIZE_TRIANGLE; | 491 tri_cur_num = MAX_SIZE_TRIANGLE; |
490 create_pp_task(sg, pp_cur, create_pp_wait, | 492 create_pp_task(sg, pp_cur, create_pp_wait, |
491 pp_index, sg_index, tri_cur_num); | 493 pp_index, sg_index, tri_cur_num); |
492 | 494 |
493 PolygonPackPtr next = (PolygonPackPtr)manager->allocate(sizeof(PolygonPack)); | 495 PolygonPackPtr next = (PolygonPackPtr)manager->allocate(sizeof(PolygonPack)); |
494 | 496 next->init(); |
497 | |
495 pp_cur->next = next; | 498 pp_cur->next = next; |
496 pp_cur = next; | 499 pp_cur = next; |
497 pp_index = 0; | 500 pp_index = 0; |
498 | 501 |
499 } else { | 502 } else { |