A set of python scripts that convert the Khronos OpenGL API registry into a canonicalised Python model, which can then be serialised to various formats (currently JSON and C++ header/source files)
This project is used by GLdoc and GL++
See the gencpp.bat
and genjs.bat
for examples of usage.
usage: gen.py [-h] [-p PATCHFILE] [-o OUTPUTDIR] [--force] [-j] [-c]
[--verify] [--es2only]
regfile
positional arguments:
regfile XML registry file
optional arguments:
-h, --help show this help message and exit
-p PATCHFILE, --patchfile PATCHFILE
XML patch file
-o OUTPUTDIR, --outputdir OUTPUTDIR
directory into which output files are dumped
--force force creation of output directory
-j, --json
-c, --cpp
--verify
--es2only
- doesnt process 'alias' commands (generally provided by extensions)
- source command description and usage text from somewhere?