Mac OS X GLUT support
rndblnch <[email protected]> Thu, 16 Jan 2014 15:09:39 +0000 (UTC)
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
hello,
GLUT on Mac OS X provides some non-standard extensions.
here is a patch to provide them to PyOpenGL users:
diff -ru PyOpenGL-3.0.2/OpenGL/GLUT/osx.py
PyOpenGL-3.0.2-mine/OpenGL/GLUT/osx.py
--- PyOpenGL-3.0.2/OpenGL/GLUT/osx.py 2014-01-16 15:57:45.000000000 +0100
+++ PyOpenGL-3.0.2-mine/OpenGL/GLUT/osx.py 2014-01-16 16:03:59.000000000 +0100
@@ -1,5 +1,10 @@
"""OSX specific extensions to GLUT"""
from OpenGL import platform
+from OpenGL import constant
+from OpenGL.GLUT import special
+
+GLUT_NO_RECOVERY = constant.Constant( 'GLUT_NO_RECOVERY', 1024)
+GLUT_3_2_CORE_PROFILE = constant.Constant( 'GLUT_3_2_CORE_PROFILE', 2048)
glutCheckLoop = platform.createBaseFunction(
'glutCheckLoop', dll=platform.GLUT, resultType=None,
@@ -7,3 +12,7 @@
doc='glutCheckLoop( ) -> None',
argNames=(),
)
+
+glutWMCloseFunc = special.GLUTCallback(
+ 'WMClose', (), (),
+)
renaud
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net