SDL-Prim (v0.3.0)
SDL_prim is a set of drawing primitives for use with the SDL.
Library API: (Read "README" for more details)
void SDL_drawLine_TG(
SDL_Surface *surface,
int x1,
int y1,
int x2,
int y2,
Uint32 clr,
Uint8 alpha,
Uint8 flags
)
void SDL_drawCircle_TG(
SDL_Surface *surface,
int x,
int y,
int r,
Uint32 clr,
Uint8 alpha,
Uint8 flags
)
void SDL_drawTriangle_TG(
SDL_Surface *surface,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
Uint32 clr,
Uint8 alpha,
Uint8 flags
)
available flags...
SDL_TG_ANTIALIAS - enable anti-aliasing
SDL_TG_ALPHA - enable alpha-blending
SDL_TG_FILL - enable filling
SDL_TG_LOCK - allow SDL_prim to handle locking the surface