develop/SDL

[sdl] SDL_FillRect

shellbt 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) );