C++ program for DDA line drawing algorithm using OpenGL
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp -lGL -lGLU -lglut
kodingwindow@kw:~$ ./a.out Enter the x1 coordinate 20 Enter the y1 coordinate 20 Enter the x2 coordinate 150 Enter the y2 coordinate 150
What Next?
C++ program for Bresenham's line drawing algorithm using OpenGL
C++ program for DDA circle drawing algorithm using OpenGL
C++ program for Bresenham's circle drawing algorithm using OpenGL
Advertisement