Thanks so much again for all your help.
I've run your script and the first thing I had to do was comment out the NV import and function call as I got an ImportError saying OpenGl.GL.NV has no module named draw_instanced. The good news
is once I comment this out, the example runs and I get the following:
<OpenGL.extensions.glDrawArraysInstanced object at 0x10510a248> True
Which I guess means its managing to use the ARB version, which is excellent. All I need to do now is work out how to configure this when using Qt as the host…
On 13-12-12 06:52 AM, Robert Kent wrote:
Further to my previous email, I have now re-installed PyOpenGL and can
call the glInitDrawInstanced* functions for ARB and EXT without them seg
faulting but they both return False. Is it a case of importing the correct
modules to get ARB/EXT methods initialised and if so, which modules? Any
thoughts or advice would be greatly appreciated.
I've attached a module that, using GLUT as the host, prints out which of
the various alternates is available. The glInit* functions aren't
really necessary with modern PyOpenGL, they should still work, but they
just do an "is this extension in glGetString( GL_EXTENSIONS )" test.
The sample also shows how to create an OpenGL.extensions.alternate that
will call the first of the functions available on the machine.
Hope that helps,
Mike C. Fletcher
Designer, VR Plumber, Coder
The University of Dundee is a registered Scottish Charity, No: SC015096