Beginners Guide to Computer Graphics in C/C++, OpenGL, JavaFX
A simple implementation of Bresenham's line drawing algorithm