Skip to content
Luca Piccioni edited this page Apr 16, 2017 · 3 revisions

Getting started

Suppose you need a brand new extension exposed by the lastest OpenGL driver. How include it in OpenGL.Net? It is not that hard.

Follow the steps:

  1. Checkout the OpenGL XML Registry at https://github.com/KhronosGroup/OpenGL-Registry. Copy the files OpenGL-Registry/xml/gl.xml, OpenGL-Registry/xml/wgl.xml, OpenGL-Registry/xml/glx.xml and OpenGL-Registry/xml/egl.xml to the OpenGL.Net/GLSpecs/ directory.

  2. Open the a solution containing the BindingsGen (i.e. /All*.sln or /BindingsGen.sln). Build the BindingsGen project, using the Release configuration. Then run it: it takes some minute and lots of ram.

  3. Try to compile the OpenGL.Net projects: if no compilation errors occurs, you have almost done. In the case of compilation errors, you should check how to fix them by configuring (or modifying) the _BindingsGen _executable, or adapting the XML specifications.

  4. Check actual modifications on OpenGL.Net project. If they are correct and usable, commit them. Enjoy.

Configure the code generator

The BindingsGen code generator has configuration files that are embedded in the executable. They are XML files that adds metadata to OpenGL specification elements.

Clone this wiki locally