Skip to content
/ glgen Public

generates OpenGL interface information for a few of my projects - currently JSON data and c++ headers/source files

Notifications You must be signed in to change notification settings

seshbot/glgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLgen

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++

Usage

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

TODO

  • doesnt process 'alias' commands (generally provided by extensions)
  • source command description and usage text from somewhere?

About

generates OpenGL interface information for a few of my projects - currently JSON data and c++ headers/source files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published