glbinding: new C++ OpenGL Binding with OpenGL 4.5 Support



glbinding: new C++ OpenGL Binding

glbinding is new library intended for making the graphics developer’s life easier. glbinding, developed by the Computer Graphics Systems Group at the Hasso Plattner Institute (in Germany), is a generated, cross-platform C++ binding for OpenGL which is solely based on the new xml-based OpenGL API specification (gl.xml).

The authors of glbinding have also developed glRAW and glIsDeprecated.

glbinding 1.0.0, the first public version, comes with the support of OpenGL 4.5.

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. glbinding can be used as an alternative to GLEW and other projects, e.g., glad, gl3w, glLoadGen, glload, and flextGL.

glbinding leverages modern C++11 features like enum classes, 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 your projects.

Here is a code snippet based on glbinding:

#include 
#include 

using namespace gl;

int main()
{
  // create context, e.g. using GLFW, Qt, SDL, GLUT, ...

  glbinding::Binding::initialize();

  glBegin(GL_TRIANGLES);
  // ...
  glEnd();
}

More information, source code and examples are available HERE.







Geeks3D.com

↑ Grab this Headline Animator