Anyone using glad?

Jason Jeffory via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 10 16:46:38 PST 2016


On Sunday, 10 January 2016 at 23:14:33 UTC, Dav1d wrote:
> On Sunday, 10 January 2016 at 22:37:28 UTC, Jason Jeffory wrote:
>> [...]
>
> I would recommend using glfw for a context/window, there is a 
> binding in Deimos https://github.com/D-Programming-Deimos/glfw 
> - You need to either compile it yourself or just download the 
> pre compiled package from the website and get the .lib file 
> (http://www.glfw.org/).
>
> There is also an abstraction I wrote once: 
> https://github.com/Dav1dde/glwtf not sure if it still works, it 
> *should*.
> But even without the abstraction, getting a window and context 
> up with glfw is really easy (documentation is really good! 
> http://www.glfw.org/documentation.html). There is also a C++ 
> example using glad: 
> https://github.com/Dav1dde/glad/blob/master/example/c%2B%2B/hellowindow2.cpp which can easily be ported to D.
>
> Basically all you need is glfw and glad to get started!

OK, I'll give it a try. What about GLUT and WGL? Whats the 
difference between them all and glfw? Are all these just OS 
helpers to reduce the boilerplate code?

Also, how hard would it be to support cgl? (mac bindings)

Thanks!


More information about the Digitalmars-d-learn mailing list