'develop/SDL_gfx'에 해당되는 글 1건
- 2011.03.15 [sdl_gfx] lineColor
[sdl_gfx] lineColor
develop/SDL_gfx 2011. 3. 15. 16:52
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을 이용해서 만든다.