'sdl_gfx'에 해당되는 글 1건

  1. 2011.03.15 [sdl_gfx] lineColor

[sdl_gfx] lineColor

include  <SDL_gfxPrimitives.h>
int lineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1,Sint16 x2, Sint16 y2, Uint32 color);
return : success -> 0, error -> -1 
선 그리기

color 값은 SDL_MapRGB을 이용해서 만든다.


prev 1 next