Section outline
-
Topics for discussion
Line Drawing Algorithm Implementation: Digital Differential Analyzer(forward), Bresenham
Expected Learning Outcome:
- Students will be able to implement the DDA algorithm (forward) and the Bresenham Algorithm.
- Students will be able to draw a line using two endpoints with DDA & Bresenham algorithm.
Expected Skills:
a. knowledge about C/C++ programming
b. Clear idea about OpenGLTools Required:
- CodeBlocks
- OpenGL and GLUT using CodeBlocks.
-
Write a program to draw a line with endpoints (120. 70) by using DDA algorithm.
Write a program to draw a line with endpoints (80, 320) and (200, 30) by using Bresenham.
Submission Guide Line:
- Submit .txt file of your code
- Snapshot of the output
N.B. Do not submit .ZIP or .RAR file