Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/task/CreateSpan.cc @ 625:60aa3f241b10
64bit mode worked on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 10:59:55 +0900 |
parents | 42c94f85c779 |
children | 55159a5bf2c4 |
comparison
equal
deleted
inserted
replaced
624:c7b5c99252ad | 625:60aa3f241b10 |
---|---|
433 = (VertexPackPtr)smanager->allocate(sizeof(VertexPack)); | 433 = (VertexPackPtr)smanager->allocate(sizeof(VertexPack)); |
434 NormalPackPtr normal1,normal2, normal3; | 434 NormalPackPtr normal1,normal2, normal3; |
435 SpanPackPtr *spackList = (SpanPackPtr*)smanager->get_input(1); | 435 SpanPackPtr *spackList = (SpanPackPtr*)smanager->get_input(1); |
436 spack = (SpanPackPtr)smanager->get_input(2); | 436 spack = (SpanPackPtr)smanager->get_input(2); |
437 send_spack = (SpanPackPtr)smanager->allocate(sizeof(SpanPack)); | 437 send_spack = (SpanPackPtr)smanager->allocate(sizeof(SpanPack)); |
438 prev_index = smanager->get_param(0); | 438 prev_index = (long)smanager->get_param(0); |
439 | 439 |
440 // spack と send_spack は swap しながら DMA を繰り返すので | 440 // spack と send_spack は swap しながら DMA を繰り返すので |
441 // 自分で allocate した send_spack を覚えてないといけない | 441 // 自分で allocate した send_spack を覚えてないといけない |
442 SpanPackPtr free_spack = send_spack; | 442 SpanPackPtr free_spack = send_spack; |
443 | 443 |
444 int charge_y_top = smanager->get_param(1); | 444 int charge_y_top = (long)smanager->get_param(1); |
445 int charge_y_end = smanager->get_param(2); | 445 int charge_y_end = (long)smanager->get_param(2); |
446 | 446 |
447 do { | 447 do { |
448 if (pp->next != NULL) { | 448 if (pp->next != NULL) { |
449 smanager->dma_load(next_pp, (memaddr)pp->next, | 449 smanager->dma_load(next_pp, (memaddr)pp->next, |
450 sizeof(PolygonPack), POLYGON_PACK_LOAD); | 450 sizeof(PolygonPack), POLYGON_PACK_LOAD); |