[PyOpenGL-Users] OSX - glutCheckLoop and glutWMCloseFunc
Brought to you by:
mcfletch
From: Nicolas R. <Nic...@in...> - 2011-08-26 12:22:02
|
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 |