[sdl] SDL_MapRGB
develop/SDL 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);
색을 만든다.
ex)
Uint32 yellow;
yellow = SDL_MapRGB(screen->format, 0xff, 0xff, 0x00);
'develop > SDL' 카테고리의 다른 글
점 찍기 (0) | 2011.12.07 |
---|---|
[sdl] SDL_FillRect (0) | 2011.03.16 |