OpenGL Cheat Sheet
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
A single-page index of quick links to every page in this sub-section, grouped the same way as the sub-section itself, for jumping straight to the topic you need instead of paging through the navigation.
The downloadable PDF is a separate, single A4 page meant for printing. It states the version baseline this sub-section targets (OpenGL 4.6 with GLSL 4.60, OpenGL ES 3.2 with GLSL ES 3.20 and EGL 1.5, all checked on 1 November 2026) and covers:
-
the API family and versions, with the macOS 4.1 cap, the Android API levels, the WebGL mapping, ANGLE and Zink;
-
a context setup snippet with GLFW hints, the glad load and the debug callback;
-
the object lifecycle table for buffers, vertex arrays, textures, samplers, framebuffers and programs;
-
a mini pipeline diagram and a minimal vertex and fragment shader pair with the GL and ES headers;
-
vertex attribute setup with a stride and offset sketch;
-
the model, view and projection chain with GLM calls and the NDC and depth conventions;
-
a texture parameter table and the state toggles for depth, culling, blending and stencil;
-
the draw call family, the std140 and std430 rules and a debugging checklist;
-
the porting map from OpenGL to Vulkan, Metal and WebGPU and a strip of what changed since older tutorials.
Orientation — OpenGL, OpenGL in 2026, Versions, Profiles and Extensions, and What Has Changed Since the Older OpenGL Guides.
Setup and first triangle — Getting Started on the Desktop, Contexts, Windows and Loaders, EGL: Displays, Configs, Surfaces and Contexts, Hello Triangle, and The OpenGL Rendering Pipeline.
Data and shaders — Buffers and Vertex Specification, The OpenGL Shading Language (GLSL), Shaders and Programs, Uniforms, UBOs and SSBOs, Direct State Access, and GLSL ES and Shader Portability.
Transformations and camera — Coordinate Systems and Transforms in OpenGL and Cameras and Projection in OpenGL.
Appearance — Textures and Samplers in OpenGL, Lighting with Blinn-Phong in OpenGL, Materials and Normal Mapping in OpenGL, Physically Based Rendering Basics in OpenGL, and Blending, Depth and Stencil in OpenGL.
Advanced rendering — Framebuffers and Render to Texture, Shadow Mapping, Instancing and Indirect Drawing, Geometry and Tessellation Shaders, Compute Shaders in OpenGL, Mesh Shaders in OpenGL (GL_EXT_mesh_shader), Synchronisation, Queries and Transform Feedback, and Antialiasing and HDR in OpenGL.
References
-
OpenGL registry: https://registry.khronos.org/OpenGL/index_gl.php
-
OpenGL 4 reference pages: https://registry.khronos.org/OpenGL-Refpages/gl4/
-
OpenGL ES 3 reference pages: https://registry.khronos.org/OpenGL-Refpages/es3/
-
GLSL 4.60 specification: https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.html
-
OpenGL Wiki: https://wikis.khronos.org/opengl/