News

File metadata and controls Code Blame 111 lines (105 loc) · 1.51 KB Raw 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 ...
// DDA Algorithm for line drawing in OpenGL using mouse clicks to draw lines between two points on the screen. (m<1 and m>1) optimized for all slopes and quadrants.
First off a normal DDA algorithm, that's easy.. Then off to Bresenham and midpoint, but almost all sources I have found says that Bresenham and midpoint is the same one.