Hacker News new | ask | show | jobs
by flohofwoe 4325 days ago
There's actually an XML spec, don't know whether this is enough to automatically generate language bindings from it though: https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/pub...
2 comments

> don't know whether this is enough to automatically generate language bindings from it though

Yes it is and most language bindings are generated using them. This also includes "OpenGL extension loaders" which are required in C apps too.

I have to admit that, while I knew these documents existed, I was not aware they included as much information as they do: I was under the impression that it was merely an xml version of the original C headers to facilitate their parsing. Having a second look, it seems that it also covers information like array expected size and valid enum subsets for parameters, which is very valuable data for all players using the API (even driver implementors could use it to generate basic conformance tests).