Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Thiago Macieira
On terça-feira, 17 de dezembro de 2013 23:38:44, Thiago Macieira wrote: > On quarta-feira, 18 de dezembro de 2013 08:32:21, Yves Bailly wrote: > > I know this. But it's visible in the public API as any protected method, > > it > > even appears in the doc > > (https://qt-project.org/doc/qt-5/qabstra

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Thiago Macieira
On quarta-feira, 18 de dezembro de 2013 08:32:21, Yves Bailly wrote: > I know this. But it's visible in the public API as any protected method, it > even appears in the doc > (https://qt-project.org/doc/qt-5/qabstractopenglfunctions.html#isInitialized > ), which is where I saw it the > first time

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Yves Bailly
Le 17/12/2013 17:58, Thiago Macieira a écrit : > On terça-feira, 17 de dezembro de 2013 11:56:58, Yves Bailly wrote: >> It is protected, so "public" for any derived class... if it's not >> intended to be used at all, then maybe it might be better to remove >> it entirely? > > It's used by derived c

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Thiago Macieira
On terça-feira, 17 de dezembro de 2013 11:56:58, Yves Bailly wrote: > It is protected, so "public" for any derived class... if it's not > intended to be used at all, then maybe it might be better to remove > it entirely? It's used by derived classes. These classes: QOpenGLFunctions_1_0 QOpenGLFun

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Yves Bailly
Le 17/12/2013 11:53, Sean Harmer a écrit : > If you're planning on using the functions object in more than one class you > may be better off obtaining a pointer to it from the > QOpenGLContext::versionFunctions() function rather > than sub-classing. The object is owned by the context and is shared

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Yves Bailly
Le 17/12/2013 10:21, Thiago Macieira a écrit : > On terça-feira, 17 de dezembro de 2013 09:49:48, Yves Bailly wrote: >> (1) >> When I try to build this program, I get a link error: >> gl_widget.obj : error LNK2019: symbole externe non résolu "protected: bool >> __cdecl QAbstractOpenGLFunctions::isI

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Sean Harmer
On Tuesday 17 December 2013 01:21:14 Thiago Macieira wrote: > On terça-feira, 17 de dezembro de 2013 09:49:48, Yves Bailly wrote: > > (1) > > When I try to build this program, I get a link error: > > gl_widget.obj : error LNK2019: symbole externe non résolu "protected: bool > > __cdecl QAbstractOpe

Re: [Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Thiago Macieira
On terça-feira, 17 de dezembro de 2013 09:49:48, Yves Bailly wrote: > (1) > When I try to build this program, I get a link error: > gl_widget.obj : error LNK2019: symbole externe non résolu "protected: bool > __cdecl QAbstractOpenGLFunctions::isInitialized(void)const " > (?isInitialized@QAbstractOp

[Interest] Usage of QAbstractOpenGLFunctions and derived classes

2013-12-17 Thread Yves Bailly
Greetings all, Using the just released Qt 5.2.0 with QtCreator 3.0, compiler Visual C++ 2012 64bits on Windows 7 64bits. I'm trying to use the QtGui/QOpenGLFunctions_3_3_Core class to get access to OpenGL 3.3 Core functions (desktop obviously), by subclassing QGLWidget like this: class Gl_Widg