[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Shaders and Examples not Working



Ian Mallett wrote:
Hi,

I get (adding the necessary "import ctypes" at the top):
AttributeError: function 'glCreateShader' not found

Thanks,
Ian
You'll likely need to use the extension-based version (ARB.shader_objects). If you have a modern Nvidia/ATI card it will almost certainly have shader support available in an extension. Note that some older cards (e.g. integrated graphics chips) only support the lower-level APIs (i.e. you can't use GLSL with them).

BTW just tested this demo, it works fine with PyOpenGL bzr head (on Linux, with a reasonable Nvidia card):

http://bazaar.launchpad.net/~mcfletch/pyopengl-demo/trunk/annotate/2?file_id=shader_test.py-20080923005140-67c17kywpwxa2usj-25

HTH,
Mike

--
________________________________________________
 Mike C. Fletcher
 Designer, VR Plumber, Coder
 http://www.vrplumber.com
 http://blog.vrplumber.com