Re: [PyOpenGL-Users] Difficulty accessing glCreateShader
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-03-17 17:20:16
|
Mohan wrote: > Hi, > > I'm just starting with PyOpenGL (installed from PyOpenGL-3.0.0c1.win32.exe > under a fresh install of Python 2.5 on Windows XP Professional; the only > other package installed is pygame). I'm running into problems with the > example here: > > http://www.pygame.org/wiki/GLSLExample > > I get the error: > > AttributeError: function 'glCreateShader' not found > > on line 26: glCreateShader = gl.glCreateShader > That code is not really using PyOpenGL. It's just using ctypes to access the raw functionality via PyOpenGL's pointer to the OpenGL library. from OpenGL.GL import glCreateShader should get a fully functional and wrapped version of the function, as long as it's available on your machine. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |