RE: [PyOpenGL-Users] Re: Have exceptions terminate glutMainLoop
Brought to you by:
mcfletch
|
From: Tarn W. B. <twb...@us...> - 2001-10-08 23:03:02
|
| Wouldn't a technically clean solution consist in storing the | Python exception | information in a global somewhere, and raise the opengl error | indicator with a | Python-specific value upon returning from the Python callback when | PyErr_Occurred(), so that this 'Glenum PyOpenGLError' code be | retrieved later | with the glGetError() function by whomever wishes to catch the error ? No because, one can't exit from glutMainLoop except by sys.exit Tarn |