comparison TaskManager/Test/simple_render/viewer.cpp @ 92:663bc2a213f5

*** empty log message ***
author gongo
date Thu, 28 Feb 2008 10:45:40 +0900
parents a309cf4eafc5
children 588ab5f0e659
comparison
equal deleted inserted replaced
91:4d6bd3c0d90b 92:663bc2a213f5
341 (uint32)sgp, (uint32)sgp, NULL); 341 (uint32)sgp, (uint32)sgp, NULL);
342 task_create_pp 342 task_create_pp
343 = manager->create_task(fd_create_pp, sizeof(SceneGraphPack), 343 = manager->create_task(fd_create_pp, sizeof(SceneGraphPack),
344 (uint32)sgp, (uint32)pp, NULL); 344 (uint32)sgp, (uint32)pp, NULL);
345 task_create_sp 345 task_create_sp
346 = manager->create_task(fd_create_sp, sizeof(SceneGraphPack), 346 = manager->create_task(fd_create_sp, sizeof(PolygonPack),
347 (uint32)pp, (uint32)ssl, NULL); 347 (uint32)pp, 0, NULL);
348 #endif 348 #endif
349 349
350 #if 0 350 #if 0
351 351
352 task_draw_finish = manager->create(); 352 task_draw_finish = manager->create();
379 /** 379 /**
380 * 本当はタスクとして TestDraw を選ぶ 380 * 本当はタスクとして TestDraw を選ぶ
381 */ 381 */
382 382
383 //#define DRAW_POLYGON 383 //#define DRAW_POLYGON
384 #define DRAW_SPANPACK 384 //#define DRAW_SPANPACK
385 //#define DRAW_SPUSPAN 385 #define DRAW_SPUSPAN
386 void 386 void
387 Viewer::run_draw(void) 387 Viewer::run_draw(void)
388 { 388 {
389 HTaskPtr task; 389 HTaskPtr task;
390 int fd; 390 int fd;
417 polygon->draw(&ssl->ss[3]); 417 polygon->draw(&ssl->ss[3]);
418 polygon->draw(&ssl->ss[4]); 418 polygon->draw(&ssl->ss[4]);
419 polygon->draw(&ssl->ss[5]); 419 polygon->draw(&ssl->ss[5]);
420 # endif 420 # endif
421 #endif 421 #endif
422
422 SDL_BlitSurface(bitmap, NULL, screen, NULL); 423 SDL_BlitSurface(bitmap, NULL, screen, NULL);
423 SDL_UpdateRect(screen, 0, 0, 0, 0); 424 SDL_UpdateRect(screen, 0, 0, 0, 0);
424 425
425 frames++; 426 frames++;
426 427