[sdl] SDL_FillRect
develop/SDL 2011. 3. 16. 14:26
include "SDL.h"
int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
사각형에 색 채우기
return : success = 0, error = -1
ex)
// clear screen
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 0, 0, 0) );
int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
사각형에 색 채우기
return : success = 0, error = -1
ex)
// clear screen
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 0, 0, 0) );
'develop > SDL' 카테고리의 다른 글
점 찍기 (0) | 2011.12.07 |
---|---|
[sdl] SDL_MapRGB (0) | 2011.03.15 |