GoRogue offers a few different line generation algorithms designed to help create "closest-fit" lines between two points on a grid. These include the (popular) Bresenham's line algorithm, a DDA ...
The goal of the first lesson is to render the wire mesh. To do this, we should learn how to draw line segments. We can simply read what Bresenham’s line algorithm is, but let’s write code ourselves.
So I'm taking a computer graphics course in openGL right now, and for the first lab we are to among other things implement three line drawing routines. First off a normal DDA algorithm, that's easy..
Results that may be inaccessible to you are currently showing.
Hide inaccessible results