October 2015
Intermediate to advanced
352 pages
7h 59m
English
UNDERSTANDING OPENGL

In this project, you’ll create a simple program that displays a texture-mapped square using OpenGL and GLFW. OpenGL adds a software interface to your graphics processing unit (GPU), and GLFW is a windowing toolkit. You’ll also learn how to use the C-like OpenGL Shading Language (GLSL) to write shaders—code that executes in the GPU. Shaders bring immense flexibility to computations in OpenGL. I’ll show you how to use GLSL shaders to transform and color geometry as you create a rotating, textured polygon (as shown in Figure 9-1).
GPUs are optimized to perform the same operations on huge amounts of data repeatedly, in parallel, ...
Read now
Unlock full access