PDA

View Full Version : about draw 2d line



Barbary
03-01-2005, 08:36 PM
How can I draw 2d lines faster?
about a million lines
can it be finished in 2 seconds?

SirKnight
03-01-2005, 09:13 PM
So I'm guessing GL's lines are not good enough?

Ok if that's the case then (and this is not opengl) why not use Bresenham's algorithm and plot the pixels yourself? Linky: http://www.cs.helsinki.fi/group/goa/mallinnus/lines/bresenh.html
& http://www.answers.com/topic/bresenham-s-line-algorithm

-SirKnight

Barbary
03-01-2005, 10:10 PM
the lines have different widths and styles
oh,it's very difficult.