Reference articles on history, science, culture and more
Encyclopedia

Glbinding

glbinding is a generated, cross-platform C++ binding for OpenGL which is solely based on the new XML-based OpenGL API specification (gl.xml). It is a fully fledged OpenGL API binding, compatible with current code based on other C bindings, e.g., GLEW. The binding is generated using Python scripts and templates, that can be easily adapted to fit custom needs. It leverages modern C++11 features like scoped enums, lambdas, and variadic templates, instead of relying on macros (all OpenGL symbols are real functions and variables). It provides type-safe parameters, per feature API header, lazy function resolution, multi-context and multi-thread support, global function callbacks, meta information about the generated OpenGL binding and the OpenGL runtime, as well as multiple examples for quick-starting projects.

The complete glbinding source code including the generated files are published under the MIT License.

Watch videos about GlbindingExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Glbinding, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.