I have the basix of my graphics API for DOS put down (Called: DosGL) but I am still learning math, so I would really appriciate some algorythems to draw rectangles (I can do that perfectly centered, but with rotation/points not being perfectly inline with each other?), Triangles, "Polygons", and maybe even just lines.

Here is a basic outline of what I have so far...

1.) It uses double buffer with arrays of bytes for the pixels (1 pixel = 1 bytes), but will soon turn to 3 byte integers for hardware independance.

2.) Shapes are presented to rendering algorythems in lists of verticeis.

Thanks a lot, SPH

P.S. If you haveany other Q's just AIM or EMAIL me, or just reply to this post!