Re: [PyOpenGL-Users] Documentation error?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-10-01 17:55:59
|
Nikolai Ugelvik wrote: > As far as I can see in the documentation, the python wrapper for > glShaderSource takes a shaderObj and string as parameters. However, > after a lot of problems testing my application on ATI cards, having > weird shader linking bugs, I decided to check out "shaders.py" in the > pyopengl package. As it turns out, it doesn't really take a string as a > parameter, it takes a list with a string in it. This works for both > Nvidia and ATI, so i expect that it is correct. > > This is just a request to get the documentation correctly updated (or > have the wrapper convert this automatically?). It took me quite a while > to figure this out, so I just want to make sure others don't have to go > down the same road. > > I've updated the documentation in the package. There's auto-conversion in the convenience code (OpenGL.GL.shaders), but I'm growing wary of putting convenience wrappers into the core code-paths... still, this is likely one of the places it would be worthwhile. Take care, and thanks for the bug report, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |