MODULE 5: THE VERTEX SPECIFICATION
5.4 — Drawing Lines (GL_LINES, GL_LINE_STRIP, GL_LINE_LOOP)
Lecture Conducted on: March 5, 2026
Exploring line primitives in PyOpenGL. Demonstrates the use of GL_LINES, GL_LINE_STRIP, and GL_LINE_LOOP to connect vertices. Explains how to manipulate line width and edge structures.
00:00:00 Venue Issues & Quiz Logistics 📢
00:05:26 Recap: Legacy Mode and glBegin / glEnd 🔄
00:10:16 Import Conventions and Inspecting PyOpenGL Commands 🐍
00:18:00 Structuring the PyGame Loop for Drawing Primitives ⚙️
00:26:40 Drawing Lines with GL_LINES & glLineWidth ✏️
00:34:02 Modifying Vertex Order for Diagonal Lines 🔀
00:45:15 Drawing Connected Lines: GL_LINE_STRIP 📏
00:49:12 Closing Shapes: GL_LINE_LOOP 🔁
➡️ Lecture 01 Part 1: https://www.youtube.com/watch?list=PL...
➡️ Lecture 01 Part 2: https://www.youtube.com/watch?list=PL...
➡️ Lecture 02 Part 1: https://www.youtube.com/watch?list=PL...
➡️ Lecture 02 Part 2: https://www.youtube.com/watch?list=PL...
➡️ Lecture 02 Part 3: https://www.youtube.com/watch?list=PL...
➡️ Lecture 03 Part 1: https://www.youtube.com/watch?list=PL...
➡️ Lecture 03 Part 2: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 1: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 2: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 3: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 4: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 5: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 6: https://www.youtube.com/watch?list=PL...
➡️ Lecture 04 Part 7: https://www.youtube.com/watch?list=PL...
➡️ Lecture 05 Part 1: https://www.youtube.com/watch?list=PL...
➡️ Lecture 05 Part 2: https://www.youtube.com/watch?list=PL...
➡️ Lecture 05 Part 3: https://www.youtube.com/watch?list=PL...
📍 Lecture 05 Part 4: (You are here)
Course Resources:
👨🏫 Instructor: Dr. Lighton Phiri (https://datalab.unza.zm/people/lighto...)
💻 GitHub Repository: https://github.com/lightonphiri/misc-...
🎓 Moodle Portal: https://moodle.unza.zm/course/view.ph...
📺 Full Playlist: • Computer Graphics and Visual Computing (20...
Copyright & Licensing:
© 2026 Lighton Phiri. Department of Computing and Informatics, The University of Zambia.
This work is licensed under a Creative Commons Attribution 4.0 International Licence.
View Licence Deed: https://creativecommons.org/licenses/...