SDL_prim version 0.2.1


ABOUT
-------
SDL_prim is a set of drawing primitives for use with the SDL
Library(www.libsdl.org).  It was written and maintained by
Ryan McGuigan <ryan@tempestgames.com> in the hopes that it will
turn out to be useful.


LICENSE
---------
See the "COPYING" file


USAGE
-------
#include "SDL_prim.h"
compile "SDL_prim.c" into your application

available functions are...
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,
	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
	)

the older style functions have been rewritten as macros that simply call
the new 0.2+ functions. see the header file if you want to use them.

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


BUGS
------
- dangling pixels and pixel overlapping in triangles
- probably more...


MISC
------
I have tested on Linux and Mac, and it has reportedly worked on
Windows.


CREDITS
---------
Ryan McGuigan <ryan@tempestgames.com>


