Skip to content
Dario Loi
Search
Menu

StapleGL

A self-contained, header-only OpenGL wrapper in modern C++20 that turns buffers, shaders, textures, and framebuffers into C++ objects.

StapleGL. The Utah teapot rendered with StapleGL and a bloom effect, glowing over water at dusk.

StapleGL is a thin wrapper around OpenGL 3.3 and later that turns OpenGL objects into C++ objects with move semantics. It works with any function loader and any windowing library, so it drops into an existing project.

It covers vertex, index, and uniform buffers, vertex arrays, textures, render buffers, framebuffers, and shader programs. On top of those it adds automatic shader parsing and compilation, an instanced vertex buffer for batch rendering, a simple interface for uploading uniforms, and STL algorithms over buffer contents. It began as a fork of Christian Panov's GLCore.

  • C++
  • OpenGL
  • Graphics