Re: [PyOpenGL-Users] OSX - glutCheckLoop and glutWMCloseFunc
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2011-09-04 21:32:02
|
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
|