Learn OpenGL, extensive tutorial resource for learning Modern OpenGL

259 points · 138 comments on HN · read original →

Points and comments are a snapshot, not live.

LearnOpenGL offers a free online book for modern core-profile OpenGL graphics programming.

The site provides a complete, step-by-step tutorial resource for learning modern core-profile OpenGL, covering both basic and advanced topics like lighting, scene traversal, and post-processing. It is free and also available as a printed book (~$60) or free PDF. The resource aims to be accessible to beginners while remaining useful for experienced users, and includes a walkthrough for building a small game.

What commenters are saying

Commenters largely recommend the resource for learning OpenGL, praising its clarity and help with setup boilerplate. A split emerges: some argue OpenGL is obsolete, citing deprecation on Apple platforms and Android's move to Vulkan, and recommend Vulkan, WebGPU, or Metal instead. Others counter that OpenGL remains fine for many uses, with many low-quality Vulkan drivers on mobile. Practical suggestions include using RenderDoc for debugging and frameworks like OpenTK for .NET or Sokol/SDL-GPU as wrappers.