Anyone using glad?

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 10 14:46:51 PST 2016


On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory wrote:
> Seems like it is a very nice way to get into openGL from D.
>
> http://glad.dav1d.de/
>
> I generated the bindings for all the latest versions of the 
> various specifications.
> Does anyone have any tutorials that use this library 
> effectively?
>
> There's this
>
> https://github.com/Dav1dde/glamour
>
> But not sure what it is(diff between it and glad). Says it's a 
> wrapper to OpenGL... but does it use the glad generated 
> bindings?
>
> It looks like I'd prefer this to derelict because it seems like 
> it is a automatically generated binding... which means future 
> extensibility and no "extra" stuff.
>
> Would be nice if it works with dub. How could I use it easily 
> with dub as a local library? (create a dependency from a local 
> file location)
>
> Thanks.

I preferred glad over derelict when I did some opengl work with D 
because it was easier to just include only the functions I 
wanted. Derelict made much bigger binaries, not sure how much in 
part that was to the whole kitchen sink approach or the derelict 
utility itself.

However, both are great and work fine. Their analogues in C/C++ 
would be function pointer loaders like glew for derelict or 
opengl binding generators like glLoadGen(and glad, it's 
multi-language — I actually preferred it for C++ too) for glad.
Bye.


More information about the Digitalmars-d-learn mailing list