haskell-opengl / OpenGL

Haskell bindings to OpenGL
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

Add tessellation functionality #74

Closed hesiod closed 9 years ago

hesiod commented 9 years ago

Address issue #52: Add functions and two limit constants (GettableStateVars) vital for (shader-based) tessellation. To better resemble the newest OpenGL specs, make PrimitiveMode a public module and move its marshaling functionality to a new internal module PrimitiveModeInternal.

I'm not quite sure about the placement of maxPatchVertices and maxTessellationLevel.

svenpanne commented 9 years ago

Thanks for the patch, I'll bump the version number later (we need to bump the minor version number).