I have done a bit of searching to see if this has already been covered, but apart from some passing mentions i couldn't find anything (i am very tired and bleary eyed though so apologies if i missed it).
Even though i have other ideas that i could probably pressing on with, i've decided of late to have a look at the demo thread and not using SDL.
Last night i popped a simple bresenham line function into the demo framework, and it worked up to a point (only slopes of 1, but i realise why that is).
I'm just wondering if anyone has done any line drawing and if so have they got any nice quick optimised routines to share ?
(In the first instance i'm talking about normal aliased lines)
Even though i have other ideas that i could probably pressing on with, i've decided of late to have a look at the demo thread and not using SDL.
Last night i popped a simple bresenham line function into the demo framework, and it worked up to a point (only slopes of 1, but i realise why that is).
I'm just wondering if anyone has done any line drawing and if so have they got any nice quick optimised routines to share ?
(In the first instance i'm talking about normal aliased lines)