I’ve added a few more Red Book (8th edition) examples including fur shading and tessellation.
All these examples use OpenGL 4.3, SDL2, glm and glew (except tessellation which uses freeglut)
OpenGL 4.3 draw commands using SDL2 glew and glm
OpenGL 4.3 object instancing (Red Book Chapter 3)
OpenGL 4.3 Shadow mapping (Red Book Chapter 4)
OpenGL 4.3 Cube mapping (Red Book Chapter 6)
OpenGL 4.3 Light Models (Red Book Chapter 8)
OpenGL 4.3 Fur shading using geometry shader (RedBook Chapter 10)
Tessellated Teapot (Red Book Chapter 9)
Order Independent Transparency (Red Book Chapter 11)
The OpenGL SuperBible (6th edition) seems to have much better example code, for OpenGL 4.3, than the Red Book (8th edition).
You can download the source from git here: https://github.com/openglsuperbible/sb6code
(In Linux, just type git clone https://github.com/openglsuperbible/sb6code)
and download the media files here: http://openglsuperbible.com/files/sb6media_2013_11_10.zip
Currently there is a bug in the CmakeLists.txt that prevents linking on Linux systmes, in line 13 you need to change “elif (UNIX)” to “elseif (UNIX)” and you should be fine.
The SuperBible example code is based on glfw and in Linux you also need to install GLX and GL headers and libs.