Multithreading and Loggers

ponce contact at gam3sfrommars.fr
Sat Feb 1 13:23:37 PST 2014


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


More information about the Digitalmars-d mailing list