On Saturday, 1 February 2014 at 21:23:38 UTC, ponce wrote:
On Friday, 31 January 2014 at 13:48:09 UTC, Nicolas F. wrote:
Hello,
I'm having some problems wrapping my head around shared
classes and whatnot.
So my application has a Logger class, which basically just
writes formatted messages to a target, of which debugGLLogger
inherits. What debugGLLogger does is simple in theory: it
supplies a callback function to OpenGL, and said callback
function uses a logger to write debug messages coming from
OpenGL to.
Looks like you want to route OpenGL logging to your own logger,
you can look here for the very same thing:
https://github.com/p0nce/gfm/blob/master/opengl/gfm/opengl/opengl.d#L417
I tried this before and wasn't successful (got a weird crash),
but I just tried again and this time around it works well. I
must've messed up a cast somewhere.
Thanks, this resolved my issue!