cvs commit: fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL
BufferMode.hs EdgeFlag.hs PixelFormat.hs PrimitiveMode.hs BeginEnd.hs
DataType.hs Framebuffer.hs PixelRectangles.hs ReadCopyPixels.hs
VertexArrays.hs BeginEndInternal.hs PixelTypes.hs ...
Sven Panne
panne@glass.cse.ogi.edu
Sun, 29 Jun 2003 08:51:07 -0700
panne 2003/06/29 08:51:07 PDT
Modified files:
libraries/OpenGL/Graphics/Rendering/OpenGL/GL BeginEnd.hs
DataType.hs
Framebuffer.hs
PixelRectangles.hs
ReadCopyPixels.hs
VertexArrays.hs
libraries/OpenGL/Graphics/Rendering/OpenGL/GLU Mipmapping.hs
Tessellation.hs
Added files:
libraries/OpenGL/Graphics/Rendering/OpenGL/GL BufferMode.hs
EdgeFlag.hs
PixelFormat.hs
PrimitiveMode.hs
Removed files:
libraries/OpenGL/Graphics/Rendering/OpenGL/GL
BeginEndInternal.hs
PixelTypes.hs
Log:
After some serious fights with the OpenGL spec it was concluded that
defending against every possible abuse of the API with the help of
Haskell's type system is a futile attempt: There are cases where the
allowed values of one parameter depend on the value of another,
e.g. in the area of pixel formats and pixel types. Consequently, types
which are used for similar purposes are merged, e.g. the buffer modes
for reading and writing, although the former is only a subset of the
latter.
Although this allows for a few semantic errors which were previously
impossible, the new design is more consistent and quite a bit simpler.
Furthermore, the strucure of the source code was cleaned up by moving
every data types which is used more than once (including its
(un-)marshalers) into a separate module of the same name.
Revision Changes Path
1.15 +3 -2 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/BeginEnd.hs
1.2 +45 -0 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/DataType.hs
1.8 +6 -78 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/Framebuffer.hs
1.10 +6 -5 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/PixelRectangles.hs
1.3 +11 -49 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/ReadCopyPixels.hs
1.6 +2 -2 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/VertexArrays.hs
1.8 +11 -10 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Mipmapping.hs
1.15 +3 -2 fptools/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Tessellation.hs