AA Helper Library


Instructions for use:
1) Type "make" to make aa_helper.a
2) Include "aa_helper.h" in your code.
3) Link aa_helper.a to your other object code.

There's a test app. Just type "make test" to try it out.


Things provided in this library:

1) Rendering and file output
void aa_renderframe(aa_context *c, unsigned char *frame);
struct aa_outputfile *aa_openoutputfile(aa_context *context,
			const char *filename);
int aa_writeframe(aa_context *context, struct aa_outputfile *outputfile);
void aa_closefile(struct aa_outputfile *outputfile);

2) Sprites
void aa_drawtextsprite(aa_context *c, const unsigned char *sprite,
			int width, int height, int left, int top,
			enum aa_attribute attr, int transparent);
void aa_drawgraphicsprite(aa_context *c, const unsigned char *sprite,
			int width, int height, int left, int top,
			int transparent);

3) Graphics Primitives
void aa_drawline(aa_context *context, int x0, int y0,
			int x1, int y1, int color);
void aa_drawcircle(aa_context *context, int cx, int cy,
			int r, int color, int fillcolor);
void aa_drawellipse(aa_context *context, int cx, int cy,
			int rx, int ry, int color, int fillcolor);
void aa_drawpoly(aa_context *context, int numpoints,
			struct aa_point *pointlist, int color,
			int hints);

4) UI Components
int aa_menu(aa_context *context, const char *message,
			const char **choices, int numchoices);

Please take a look at aa_helper.h for the current documetnation.

Gary (-;
<chunky@icculus.org>
