Re: [Interest] Using OpenGL with Qt

2014-03-18 Thread Till Oliver Knoll
Am 17.03.2014 um 16:49 schrieb Yves Bailly : > ... > That was 100k ;-) and each is a different piece of mesh, so no instances. Its > 100k instances of a *class*, not 100k instances of a *model* - each "class > instance" containing its own model. That's exactly where the already mentioned "multi d

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Yves Bailly
Le 17/03/2014 16:03, Sean Harmer a écrit : > On Monday 17 March 2014 13:42:04 Yves Bailly wrote: >> Le 17/03/2014 12:59, Agocs Laszlo a écrit : >> So I'm back to my initial question: can Glew be used nicely with Qt? Seems >> so in my quick test program (even using QOpenGLShaderProgram), but I'm >>

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Sean Harmer
On Monday 17 March 2014 13:42:04 Yves Bailly wrote: > Le 17/03/2014 12:59, Agocs Laszlo a écrit : > > No, that is expected. After all it has to look up the versionFunction > > internals from the hash table maintained by the context. With the design > > shown here, deriving GL_Model from QOpenGLFunc

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Yves Bailly
Le 17/03/2014 12:59, Agocs Laszlo a écrit : > No, that is expected. After all it has to look up the versionFunction > internals from the hash table maintained by the context. > With the design shown here, deriving GL_Model from QOpenGLFunctions* feels > like an overkill indeed. > > The options I

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Agocs Laszlo
Re: [Interest] Using OpenGL with Qt Le 17/03/2014 10:05, Agocs Laszlo a écrit : > I must correct my previous statement about not resolving functions that are > not called. This deferred behavior is only true for QOpenGLFunctions. The > versioned variants will resolve all functions f

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Yves Bailly
Le 17/03/2014 10:05, Agocs Laszlo a écrit : > I must correct my previous statement about not resolving functions that are > not called. This deferred behavior is only true for QOpenGLFunctions. The > versioned variants will resolve all functions for the given version already > when initializeOpe

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Agocs Laszlo
Subject: Re: [Interest] Using OpenGL with Qt Yes, the internals are shared between shared contexts. For QOpenGLFunctions at least. The versioned variants are somewhat different, those are strictly per-context, it seems. But the rest still holds: initializeOpenGLFunctions() will use the same

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Agocs Laszlo
:47 AM To: interest@qt-project.org Subject: Re: [Interest] Using OpenGL with Qt Le 17/03/2014 09:28, Agocs Laszlo a écrit : > Some notes about QOpenGLFunctions: > > One QOpenGLFunctions belongs to one QOpenGLContext. Creating additional > instances of QOpenGLFunctions for the same

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Yves Bailly
Le 17/03/2014 09:28, Agocs Laszlo a écrit : > Some notes about QOpenGLFunctions: > > One QOpenGLFunctions belongs to one QOpenGLContext. Creating additional > instances of QOpenGLFunctions for the same context will automatically share > the internals behind the scenes so "it's way too much memory

Re: [Interest] Using OpenGL with Qt

2014-03-17 Thread Agocs Laszlo
Hello, Some notes about QOpenGLFunctions: One QOpenGLFunctions belongs to one QOpenGLContext. Creating additional instances of QOpenGLFunctions for the same context will automatically share the internals behind the scenes so "it's way too much memory and time for each to resolve is functions"