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

glEnable/glDisable for GL_DEPTH_TEST is not exposed #85

Closed KaneTW closed 7 years ago

svenpanne commented 7 years ago

Actually it is exposed, perhaps not in the way you expected it, see http://hackage.haskell.org/package/OpenGL-3.0.1.0/docs/Graphics-Rendering-OpenGL-GL-PerFragment.html#g:7. depthFunc $= Nothing disables the depth test, depthFunc $= Just Less enables it with "less" as the comparison function, etc.