> On 26 Nov 2014, at 10:21, Konstantin Ritt <[email protected]> wrote: > > struct OpenGLState : GraphicState { TaoOpenGLFunctions *funcs; ... } > voi-la
Nope: I don't inherit the GL functions that way, so I have to rewrite every glFoo as funcs->glFoo, which is double plus annoying. And then, there are enough levels of indirection in the existing implementation as is, no need to add One More Level Of Indirection™ ;-) The copy constructor trick did it, though, so my recommendation would be to add a copy constructor to QAbstractOpenGLFunctions. Thanks for the help, Christophe _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
