Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/simple_render/viewer.cpp @ 37:cd0b54a564a9
*** empty log message ***
author | gongo |
---|---|
date | Tue, 12 Feb 2008 19:43:34 +0900 |
parents | 650e46810d04 |
children | babf9a330418 |
comparison
equal
deleted
inserted
replaced
36:650e46810d04 | 37:cd0b54a564a9 |
---|---|
406 p->xyz[1] = y; | 406 p->xyz[1] = y; |
407 p->xyz[2] = z; | 407 p->xyz[2] = z; |
408 //p->tree_draw(); | 408 //p->tree_draw(); |
409 #endif | 409 #endif |
410 | 410 |
411 #if 1 | 411 #if 0 |
412 update_sgp(sgp, sgp); | 412 update_sgp(sgp, sgp); |
413 create_pp(pp, sgp); | 413 create_pp(pp, sgp); |
414 #else | 414 #else |
415 fd_update_sgp = manager->open("UpdateSGP"); | 415 fd_update_sgp = manager->open("UpdateSGP"); |
416 fd_create_pp = manager->open("CreatePP"); | 416 fd_create_pp = manager->open("CreatePP"); |
434 | 434 |
435 //p->draw(sgp); // test draw of SceneGraphPack | 435 //p->draw(sgp); // test draw of SceneGraphPack |
436 p->draw(pp); // test draw of PolygonPack | 436 p->draw(pp); // test draw of PolygonPack |
437 | 437 |
438 // 一回のみ生成で、その後は再利用 | 438 // 一回のみ生成で、その後は再利用 |
439 /* | 439 //bitmap = SDL_CreateRGBSurfaceFrom((void *)pixels, width, height, 32, |
440 bitmap = SDL_CreateRGBSurfaceFrom((void *)pixels, width, height, 32, | 440 //width*4, redMask, greenMask, |
441 width*4, redMask, greenMask, | 441 //blueMask, alphaMask); |
442 blueMask, alphaMask); | 442 |
443 */ | |
444 //SDL_FillRect(screen, NULL, background); | 443 //SDL_FillRect(screen, NULL, background); |
445 SDL_BlitSurface(bitmap, NULL, screen, NULL); | 444 SDL_BlitSurface(bitmap, NULL, screen, NULL); |
446 SDL_UpdateRect(screen, 0, 0, 0, 0); | 445 //SDL_UpdateRect(screen, 0, 0, 0, 0); |
447 | 446 |
448 | 447 |
449 ///////////////////// | 448 ///////////////////// |
450 | 449 |
451 //swap_buffers(); | 450 //swap_buffers(); |