Create an explicit OpenGL context and connect C++ resource ownership to its lifetime.
This chapter’s project
Your own clear-color variation, driver report, and destruction diagram.
A softer light for long learning sessions.
Loading your preference…
Light uses Latte. Your choices stay in this browser.
Volume 02 · 16 flexible weeks
Make the GPU your canvas.
Learn OpenGL directly in Parallax: context and resource lifetime, vertex input, shader interfaces, cameras, textures, lighting, render targets, and a scene of your own.
Open my weekly workbench ↗Build an interactive OpenGL scene, inspect a frame, and explain its CPU/GPU interfaces and ownership.
Your sketchbook / 8 chapters
Two weeks per chapter: understand and build, then investigate and finish. Repeat any week.
Create an explicit OpenGL context and connect C++ resource ownership to its lifetime.
Your own clear-color variation, driver report, and destruction diagram.
Build a vertex layout and indexed observation panel whose buffer bounds and VAO state you can explain.
An original four-vertex panel, index-range test, and byte-layout sketch.
Build reliable shader diagnostics and a transactional program update with explicit interface requirements.
Your pulse control and last-good-program reload with two explained diagnostics.
Implement a tested transform convention and a bounded interactive camera for the observatory room.
Your orbitable three-object observatory, transform tests, and camera-reset behavior.
Create a bounded texture upload and an explicit linear-light/sRGB workflow for original exhibit labels.
A generated label and floor texture, an upload-layout test, and a color-pipeline diagram.
Implement a small, documented lighting model with correct normal handling and controllable materials.
Your diffuse/highlight shader, normal-debug mode, and controlled contact sheet.
Add an owned offscreen target, deliberate depth/blend state, and one postprocessing effect.
Your resize-safe color/depth target, one transparent object, and one original post effect.
Complete a bounded shadow/instancing study and package the project with debugging and performance evidence.
Your original observatory, shadow debug capture, repeated-marker comparison, and concise case study.
Keep your hands on the work
The companion explains its build steps, tested behavior, and remaining learner work. Keep your own contribution clear as the project grows.