Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 1.22 KB

How to add new GL version.md

File metadata and controls

13 lines (10 loc) · 1.22 KB

How to Add a New GL Version

(Note: this is mainly for my reference; I'll try to keep this project up-to-date, so you should never need to do this yourself.)

  1. Look for a new specification document (PDF), and add a reference to it in the README.

  2. Find the minimum values tables. For OpenGL 4.6, for example, this is §23.53 "Implementation[-]Dependent Values".

  3. Copy into a new file of the form "gl<major>.<minor>.txt":

    • Copy only the tables' interiors.
    • Copy only tables with a "Minimum Value" column.
    • If the "Get value" token is long (and in-particular if it is split onto two lines), the copy+paste will put the type on the next line. Something like:
      MAX TESS CONTROL TOTAL OUTPUT COMPONENTS
      Z+ GetIntegerv 4096
      Simply put these on the same line (with a space between) to fix:
      MAX TESS CONTROL TOTAL OUTPUT COMPONENTS Z+ GetIntegerv 4096
  4. Open parse.py, edit the lines on the top, and re-run. This should produce an updated file "out-cpp.cpp", however chances are some (hopefully minor) tweaking of the parser will be required first (I aim to do this for you, for each GL version, first, though).