Hi guys, How would everyone feel about adding a simple shader Class to the graphics module? There have been a few go-to examples out there, such as Tristan McDonald's popular one here: https://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-pyglet/ And Leonhard Vogt's framebuffer code that includes shaders here: https://leovt.wordpress.com/2015/10/04/render-to-texture-with-python-3-and-pyglet/ https://github.com/leovt/leovt/blob/master/framebuffer.py
The reason I would like to see it included is because of the ctypes magic being a bit of a blocker for new users. A simple class could handle this for the users, and allow them to easily try more modern contexts with pyglet. If I wrote this code, would it be accepted? I'm thinking a simple class, plus basic example code. (Speaking of which, many of those examples need to be updated!) -Ben -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
