Closed acarrillo closed 12 years ago
I may have found a better solution for all this line drawing. As @DoronShapiro predicted, this primitive 2D drawing work already exists for SDL: http://sdl-draw.sourceforge.net/
I am having trouble installing the library, though.
Made a new branch to explore sdl-draw. But I still have not yet successfully installed the library on my mac.
The first link tells us to use a magic function call in a blackbox "graphics.h", which we do not have. It also does not look like it is SDL-dependent.
But the second link is cool, thanks! I am also trying to make use of SDL_draw, however; I will try that first, and if I do not like it, then I'll go with Bresenham's algo.
Line drawing is clunky:
I am still working on improving the line drawing. Line drawing does have an effect on the pen tool, as scattered dots are connected by lines, so when the line drawing works, so will the pen tool.