comparison TaskManager/Test/test_render/polygon.cpp @ 238:443c7ae1c7a7 draft

warning clean
author admin@mcbk.cr.ie.u-ryukyu.ac.jp
date Fri, 29 May 2009 13:43:52 +0900
parents 5bb12a76a335
children a046c5dac580 cfd20d609ace
comparison
equal deleted inserted replaced
237:7bd052a53996 238:443c7ae1c7a7
299 red = (Uint8) p[2]; 299 red = (Uint8) p[2];
300 300
301 //printf("tx = %d ty = %d ", tx,ty); 301 //printf("tx = %d ty = %d ", tx,ty);
302 //printf("pixel color => R: %d, G: %d, B: %d\n", red, green, blue); 302 //printf("pixel color => R: %d, G: %d, B: %d\n", red, green, blue);
303 303
304 SDL_PixelFormat *pf; 304 SDL_PixelFormat *pf = NULL;
305 //pf = viewer->screen->format; 305 //pf = viewer->screen->format;
306 306
307 //cout << SDL_MapRGB(pf, red, green, blue) << endl; 307 //cout << SDL_MapRGB(pf, red, green, blue) << endl;
308 return SDL_MapRGB(pf, red, green, blue); 308 return SDL_MapRGB(pf, red, green, blue);
309 } 309 }