OSX - glutCheckLoop and glutWMCloseFunc
Nicolas Rougier <[email protected]>
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
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.
#if (GLUT_MACOSX_IMPLEMENTATION >= 2)
/* Mac OS X specific API */
extern void APIENTRY glutWMCloseFunc(void (*func)(void));
extern void APIENTRY glutCheckLoop(void);
#endif
I quickly tried to add the following code in OpenGL/GLUT/__init__.py (I know it should be done somewhere else) as a quick test and it seems to be working fine:
glutCheckLoop = platform.createBaseFunction(
'glutCheckLoop', dll=platform.GLUT, resultType=None,
argTypes=[],
doc='glutCheckLoop( ) -> None',
argNames=(),
)
glutCheckLoop = platform.createBaseFunction(
'glutCheckLoop', dll=platform.GLUT, resultType=None,
argTypes=[],
doc='glutCheckLoop( ) -> None',
argNames=(),
)
Would that be possible to include the code (at the right place) for next release ?
Nicolas
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users