Dgame revived

Namespace via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Feb 27 02:51:49 PST 2015


> This module should work as a standalone with a few tiny import 
> changes: 
> https://github.com/Dav1dde/glamour/blob/master/glamour/util.d
>
> The interesting bit is checkgl, used for example like this:
>
> checkgl!glDrawArrays(GL_POINTS, 0, 10);
>
> then you get a nice debug message if glDrawArrays reports an 
> error. It will also report if a previous error has occurred and 
> wasn't cleared, but of course in that case it won't be able to 
> tell you where.
>
> I wrap every OpenGL call with checkgl, it helps immensely.

Yes, I will do so in the future too.


More information about the Digitalmars-d-announce mailing list