Examples
Example 1.1 triangles.cpp: Our First OpenGL Program
Example 1.2 Vertex Shader for triangles.cpp: triangles.vert
Example 1.3 Fragment Shader for triangles.cpp: triangles.frag
Example 2.1 A Simple Vertex Shader
Example 2.2 Obtaining a Uniform Variable’s Index and Assigning Values
Example 2.3 Declaring a Uniform Block
Example 2.4 Initializing Uniform Variables in a Named Uniform Block
Example 2.5 Static Shader Control Flow
Example 2.6 Declaring a Set of Subroutines
Example 3.1 Initializing a Buffer Object with glNamedBufferStorage()
Example 3.2 Initializing a Buffer Object with glMapBuffer()
Example 3.3 Declaration of the DrawArraysIndirectCommand Structure
Example 3.4 Declaration of the DrawElementsIndirectCommand Structure
Get OpenGL® Programming Guide: The Official Guide to Learning OpenGL®, Version 4.5 with SPIR-V, Ninth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.