GLSL demo ported into OpenGL-ctypes (Cartoon shading is fun!)
Written by
on
in
Snaking.
I just checked in the the (minor) enhancements to allow for compiling and running GLSL shaders with OpenGL-ctypes (based on the PyGame wiki page). This is by no means a complete wrapping, it's just the features that the demo uses wrapped up so that they have "pythonic" interfaces and match the C definitions (e.g. allowing multiple strings to be passed as part of the GLSL code for a given shader, returning values rather than requiring you to pass in pointers to locations, that kind of thing).
Comments
Comments are closed.
Pingbacks
Pingbacks are closed.
Bob on 08/29/2006 1:17 a.m. #
Where? How do I get at this sample code?
Mike Fletcher on 08/29/2006 9:01 a.m. #
OpenGL-ctypes CVS (in the PyOpenGL project) and OpenGLContext CVS (again in the PyOpenGL project), first has the extension, second has the code to test it. Demo is OpenGLContext/tests/shaderobject.py