DescriptionThis patch adds the bare minimum necessary functions needed to use GLSL with bgl. There are other flags that could make into it, but I'm yet to list them all.
Please note that glSheaderSource was implemented manually to account for the need of char ** in the original code (which our macros couldn't handle).
I followed what PyGL does, instead of a function with 4 arguments, the wrapper takes only 2, so the user can create only one at a time, what I find reasonable.
Images:
[1] - http://www.dalaifelinto.com/ftp/bgl_glsl/glsl_3dview.jpg
[2] - http://www.dalaifelinto.com/ftp/bgl_glsl/glsl_3dview2.jpg
[3] - http://www.dalaifelinto.com/ftp/bgl_glsl/glsl_3dview3.jpg
Test python script:
[4] - http://www.dalaifelinto.com/ftp/bgl_glsl/bgl_glsl.zip
- commited with changeson rev. 46444
Patch Set 1 #
MessagesTotal messages: 3
|