Listings
Listing 2.1 Our first OpenGL application
Listing 2.2 Animating color over time
Listing 2.3 Our first vertex shader
Listing 2.4 Our first fragment shader
Listing 2.5 Compiling a simple shader
Listing 2.6 Creating the program member variable
Listing 2.7 Rendering a single point
Listing 2.8 Producing multiple vertices in a vertex shader
Listing 2.9 Rendering a single triangle
Listing 3.1 Declaration of a vertex attribute
Listing 3.2 Updating a vertex attribute
Listing 3.3 Vertex shader with an output
Listing 3.4 Fragment shader with an input
Listing 3.5 Vertex shader with an output interface block
Listing 3.6 Fragment shader with an input interface block
Get OpenGL SuperBible: Comprehensive Tutorial and Reference, Seventh 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.