On 14 July 2012 21:12, William Adams <william_a_adams@xxxxxxx> wrote: > I took a slightly different approach to this problem. > > I wrote something here: > http://williamaadams.wordpress.com/2012/04/18/dynamic-setting-of-uniform-shader-values/ > > My observation was that the hardest part about dealing with OpenGL/OpenCL > is simply typing in all those function signatures. > > Once you have those, there are myriad ways to solve the general extension > problem. > > I chose to just create a table with a meta __index function. whenever the > function is not found, it is looked up, then added to the table for > future quick reference. If anyone's curious, I'm using a similar technique here (with optional glGetError wrapping) https://github.com/henkboom/beamer/blob/master/gl.lua only supports glx so far, but it should be trivial to support the other two platforms. henk