Re: OSX - glutCheckLoop and glutWMCloseFunc

Nicolas Rougier <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
Thanks !
I now see the GLUT.glutWMCloseFunc. Most probably I did not test it properly in the first place.

By the way, I added a glut interactive mode to the ipython shell.
https://github.com/rougier/ipython/tree/glut

May come handy to test code interactively.


Nicolas


On Sep 4, 2011, at 23:31 , Mike C. Fletcher wrote:

> On 11-08-26 08:21 AM, Nicolas Rougier wrote:
>> 
>> 
>> Hi everybody,
>> 
>> 
>> While having a look at glut headers on OSX, I realized that there are
>> a glutCheckLoop and a glutWMCloseFunc functions but they are not
>> exported through OpenGL.GLUT.
> 
> glutWMCloseFunc *should* be available from the freeglut extensions by
> default (IIUC it's actually a deprecated version of glutCloseFunc()). 
> glutCheckLoop appears to be solving the same problem as FreeGLUT's
> glutMainLoopEvent call, apparently from Rob Fletcher's GLUT patches. 
> I've added it to the wrapper in an os-x specific module (it will
> evaluate to bool(False) if the function is not defined, as with
> everything else).
> 
> So, do you not see glutWMCloseFunc in OpenGL.GLUT ?  If you don't with
> bzr head, then there's a bug somewhere.
> 
>    python -c "from OpenGL import GLUT; print GLUT.glutWMCloseFunc"
> 
> HTH,
> Mike
> 
> -- 
> ________________________________________________
>  Mike C. Fletcher
>  Designer, VR Plumber, Coder
>  http://www.vrplumber.com
>  http://blog.vrplumber.com
> 
> 
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better 
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users


------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.