2077 9

CSC214 · 2077 · 5 marks

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]

Computer GraphicsChapter 10: Introduction to OpenGLIntroduction, Callback functions, Color commands, Drawings p

--- 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...