cvs commit: fptools/libraries/OpenGL Makefile fptools/libraries/O
penGL/Graphics/Rendering/OpenGL/GL .cvsignore Constants.hs fptools/librari
es/OpenGL/Graphics/Rendering/OpenGL/GLU .cvsignore Errors.hs
Initialization.hs Quadrics.hs Tessellation.hs
Sven Panne
panne@glass.cse.ogi.edu
Tue, 25 Feb 2003 11:01:13 -0800
panne 2003/02/25 11:01:13 PST
Modified files:
libraries/OpenGL Makefile
libraries/OpenGL/Graphics/Rendering/OpenGL/GL .cvsignore
libraries/OpenGL/Graphics/Rendering/OpenGL/GLU .cvsignore
Errors.hs
Initialization.hs
Quadrics.hs
Tessellation.hs
Removed files:
libraries/OpenGL/Graphics/Rendering/OpenGL/GL Constants.hs
Log:
Say goodbye to completely automatically generated enumerants and their
(un-)marshalers...
The reason for this probably surprising move is that it is impossible
to generate good documentation from .spec-generated Haskell code
without heavy modification of the .spec files, which would be
something very undesirable. Furthermore, the values of the enumerants
are nailed down across platforms by a heavily standardized process
through the extension registry, so we don't suffer any
incompatibilities.
Note that we still generate enumerants automatically, but they are
inserted where they are needed via cut-n-paste. Sounds very low-tech,
but we have to add extensive documentation by hand, anyway, so nothing
is really lost.
It was a long way to this seemingly simple and obvious way of handling
enumerants in HOpenGL, but I think I've finally figured out the
"right" way, once and forever. (famous last words... :-}
Revision Changes Path
1.13 +1 -31 fptools/libraries/OpenGL/Makefile
1.2 +0 -1 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/.cvsignore
1.2 +0 -1 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/.cvsignore
1.4 +155 -51 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Errors.hs
1.5 +8 -3 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Initialization.hs
1.4 +45 -9 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Quadrics.hs
1.5 +68 -7 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Tessellation.hs