Re: OSX - glutCheckLoop and glutWMCloseFunc
"Mike C. Fletcher" <[email protected]>
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
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