'sdl_fillrect'에 해당되는 글 1건

  1. 2011.03.16 [sdl] SDL_FillRect

[sdl] SDL_FillRect

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

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

점 찍기  (0) 2011.12.07
[sdl] SDL_MapRGB  (0) 2011.03.15
prev 1 next