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):
- Windows: OpenGL 3.3 and GLSL 3.3 with GLEW and GLUS - 21.06.2010
- Linux: OpenGL 3.3 and GLSL 3.3 with GLEW and GLUS - 21.06.2010
Example01 - Basic window and OpenGL 3.3 initialization
Example02 - Rendering of a triangle
Example03 - Perspective rendering of a cube
Example04 - Phong rendering of a sphere
Example05 - Texturing of a cube
Example06 - Normal mapping
Example07 - Environment/cube mapping
Example08 - Particles
Example09 - Geometry Shader
Example10 - Reflection and Refraction
Example11 - Shadow mappingTested 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!