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

OpenGL 4.x support with OpenGLRawGen #53

Closed wdanilo closed 9 years ago

wdanilo commented 10 years ago

Hello! Is it possible to update the OpenGL package to use OpenGL 4.x with OpenGLRawgen (https://github.com/Laar/OpenGLRawgen) bindings under the hood? OGL 3.2 is very outdated right now and it would be nice to allow Haskell users use newer libs.

bananu7 commented 10 years ago

I don't think it's as simple as "updating". You can already access the 4.x functionality (check out this thread for details); making the wrappers would require a bit more effort though, I think.

svenpanne commented 10 years ago

Actually OpenGLRaw (i.e. the Graphics.Rendering.OpenGL.Raw module) supports everything up to OpenGL 4.1. completely, plus a few more things from the revisions after that. What is totally missing are the modules re-exporting just a given OpenGL revision. And, as already mentioned, it is not simply a question "updating" things.

What feature from OpenGL 4.{2,3,4} is missing for you? Perhaps it's simple to add it quickly...

svenpanne commented 9 years ago

The current OpenGLRaw package offers the whole OpenGL API (4.5 plus all extensions), generated from the XML registry. I'll expose more and more of the missing functionality in the OpenGL package, but if you really need something desperately, pull requests are happily accepted. (<- Hint! :wink: ) Furthermore, you can always use stuff from OpenGLRaw directly in conjunction with OpenGL.

I think closing this issue is the right thing to do now, if you need some concrete functionality, please open a separate, more concrete bug.