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.


Things provided in this library:
void aa_renderframe(aa_context *c, unsigned char *frame);
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);
Where hints is one of:
AA_HINT_NONE
AA_HINT_CONVEX
AA_HINT_NONCONVEX
AA_HINT_COMPLEX

and aa_point is:
struct aa_point {
        int x, y;
};


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

Gary (-;
<chunky@icculus.org>
