Re: Missing functions on MacOSX?

Robert Kent <[email protected]> Thu, 12 Dec 2013 14:55:17 +0000
Newsgroups gmane.comp.python.opengl.user
Message-ID <CECF7D0E.1EFE%[email protected]>
Hi Mike,

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:

glDrawArraysInstanced False
glDrawArraysInstancedARB True
glDrawArraysInstancedEXT False
<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...

Thanks again,
Rob

On 12/12/2013 14:28, "Mike C. Fletcher" <[email protected]<mailto:[email protected]>> wrote:

On 13-12-12 06:52 AM, Robert Kent wrote:
Hi Guys,

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

--
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com



The University of Dundee is a registered Scottish Charity, No: SC015096

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users