OpenGL 3.3 and GLSL 3.3 with GLEW and GLUS

 
 
OpenGL OpenGL 3.3 and GLSL 3.3 is available but there is a lack of simple and complex example programs. On this webpage, we do want to fill this gap by providing example programs using OpenGL 3.3 and GLSL 3.3 with GLEW and GLUS (a helper library used in the example programs). Please note, that all example programs do not use any deprecated OpenGL functions.

Source Code (Visual C++ 2008 and Linux Make Project Files):


Example 01 Example01 - Basic window and OpenGL 3.3 initialization
Example 02 Example02 - Rendering of a triangle
Example 03 Example03 - Perspective rendering of a cube
Example 04 Example04 - Phong rendering of a sphere
Example 05 Example05 - Texturing of a cube
Example 06 Example06 - Normal mapping
Example 07 Example07 - Environment/cube mapping
Example 08 Example08 - Particles
Example 09 Example09 - Geometry Shader
Example 10 Example10 - Reflection and Refraction
Example 11 Example11 - Shadow mapping

Tested platforms:

  • Windows 7 (32bit) and Linux openSUSE (32bit) with an ATI Radeon HD 5850

Thanks a lot to Pablo Alonso-Villaverde Roza and Alexandr Palamar for testing and helping to make the Linux version happen!