OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

OpenGL News Archives

New OpenGL 4 + Virtual Reality Example Code

Mar 14, 2016

A new, modern OpenGL tutorial for both windowed and VR rendering released, showing in about 400 lines of C++ how to use all of OpenGL’s major features: - Window, OpenGL, HMD, and OpenGL extension initialization - Triangle mesh rendering (OpenGL Vertex Array Buffers) - Shader loading, compilation, and argument passing (OpenGL Program, Shader, and Uniform Buffer Objects) - Offscreen rendering (OpenGL Framebuffer Objects) - Materials and image file loading (OpenGL Texture and Sampler Objects) - GPU ray tracing (including ray setup compatible with rasterization) - Procedural texturing - A tiny vector math library - Basic keyboard and mouse handling for a free-flying camera - Virtual reality tracking and rendering (OpenVR)