2077 9

Computer Graphics20775 marksIntroduction, Callback functions, Color commands, Drawings p

Write a procedure to draw a line in OpenGL? Describe Painter’s algorithm.

Write a procedure to draw a line in OpenGL? Describe Painter’s algorithm. [5]

--- In OpenGL, the term line refers to a line segment. Lines are specified in terms of the vertices at their endpoints. OpenGL also supports connected series of line segments and closed connected series of segments. Primitive Description ------ GLLINES Each pair of vertices defines an independent...

Up nextLet ABCD be the rectangle window with A(0, 0), B(10, 0), C(10, 10) and D(0, 10). Use Liang