[SOLVED] Computer Graphics OpenGL Assignment 4

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

# Questions –
Assignment 4: Line Drawing

Q1.)Write a program to implement DDA (Digital Differential Analyser) algorithm. Your program should be able to take any end points as input.

Q2.)Write a program in C to implement Bresenham’s line drawing algorithm. As input, program should take any end points of a line segment.

Q3.)Re-write the above programs considering the window, you have created, as a square grid of cells. Consider that each cell is a box of pixels (for example, 6×6 box), and it is a single point in your program.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.