Re: [PyOpenGL-Users] OSX - glutCheckLoop and glutWMCloseFunc
Brought to you by:
mcfletch
From: Nicolas R. <Nic...@in...> - 2011-09-12 08:16:55
|
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 > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |