'sdl_maprgb'에 해당되는 글 1건

  1. 2011.03.15 [sdl] SDL_MapRGB

[sdl] SDL_MapRGB

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

'develop > SDL' 카테고리의 다른 글

점 찍기  (0) 2011.12.07
[sdl] SDL_FillRect  (0) 2011.03.16
prev 1 next