Represent and parse spec files from the OpenGL registry.
.tmfiles provided by opengl.org.
resultscontains a modified
glext.hfile. This is a
glext.hheader provided by opengl.org with one line modified (the one with the last update date). It is used to ensure that opengl-api still generates the same results after refactoring.
Text.OpenGL.Spec has code to completely parse and represent the content of
gl.spec. (Probably there is not much left to do
enum.spec.) The representations includes comments, blank lines,
and passthru lines.
The representations are nearly feature complete, the only missing important bit is the text defining the array size (in the description of function parameters).
Text.OpenGL.Api has code to create higher-level data structures from the
Text.OpenGL.ExtHeader is able to perfectly recreate the
from the spec files.
Text.OpenGL.GenChecks is able to generate macros to call glGetError after
every GL commands.
- Offer a simplified representation of
[EnumLine]with no comment, no blank line, no passthru, maybe references already resolved, and a single number format.
- Offer a parser for
- State in the doc that there is some doc about the spec file format at the good old Haskell-OpenGL page!