[PyOpenGL-Users] OpenGL 2 wrappers + glutReshapeFunc
Brought to you by:
mcfletch
From: Keszegh C. <el...@ma...> - 2008-01-07 20:08:18
|
Hi All, I have installed the latest release (from CVS), and wanted to try the basics with shaders. There were some problems with the default install: basplatform.py:234 func = functionTypeFor( self.DLL )( should be func = platform.PLATFORM.functionTypeFor( self.DLL )( Another issue, when i try to use the Pythonic interface of some extension (glShaderSource) with python objects, it doesnt exists. It seems, that the extensions could only be queried with valid OpenGL context (only on windows?). So they are unavailable (null-functions) at module load time, and the wrappers get not defined. If i force to define the wrappers they work. Is there a pythonic way how initialization can be done? My last problem is with glutReshapeFunc. After the second call of the callback the program exists. What am i doing wrong? The source is attached. Please consider that i'm new to python ;) Regards, Csaba -- |