develop/SDL

[sdl] SDL_MapRGB

shellbt 2011. 3. 15. 16:47
Uint32 SDL_MapRGB(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b)
색을 만든다.
ex) 
Uint32 yellow;
yellow = SDL_MapRGB(screen->format, 0xff, 0xff, 0x00);