A collection of simple single file OpenGL examples
C++
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of progschj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
glfw @ aa6f8d4
glm @ e1afbc9
glxw @ 7ee2036
.gitignore
.gitmodules
00skeleton.cpp
01shader_vbo1.cpp
01shader_vbo2.cpp
02indexed_vbo.cpp
03texture.cpp
04perspective.cpp
05fbo_fxaa.cpp
06instancing1.cpp
06instancing2_buffer_texture.cpp
06instancing3_uniform_buffer.cpp
07geometry_shader_blending.cpp
08map_buffer.cpp
09transform_feedback.cpp
10queries_conditional_render.cpp
11tesselation.cpp
12shader_image_load_store.cpp
13compute_shader_nbody.cpp
CMakeLists.txt
COPYING
README.md

README.md

OpenGL Example Collection

The purpose of thise example collection is to provide short and self contained code that showcases OpenGL api functionality/features. The examples have no dependencies on any custom framework or basecode except for "canonical" libraries such as glfw, gl3w and glm. All the examples are written against core profiles of version OpenGL version 3.3 or higher.

Most of the examples try to show the targeted features in a relevant use case such as using Frame Buffer Objects for FXAA, Transform Feedback to update particles on the GPU or Occlusion Queries + Conditional Render to optimize rendering a Cube (Minecraftlike) Cave. At the same time the goal is to keep the examples short and simple enough to not lose the focus.

The build system is cmake (only tested on my linux box...). If everything works as intended these commands should build the examples:

    git submodule init
    git submodule update
    mkdir build
    cd build
    cmake ../
    make