danomatika / swig-openframeworks

a SWIG interface for openFrameworks with included Makefile, submodule this in your language wrapper addons
Other
39 stars 11 forks source link

Wrap GLenum values for fragment and vertex shaders #10

Closed fredreichbier closed 7 years ago

fredreichbier commented 7 years ago

As I already mentioned in #9, I added some code to be able to access the constant GL_FRAGMENT_SHADER in Lua. I tried to imitate your wrapping approach for the GLint constants here. The constants seem to be necessary in order to use ofShader::setupShaderFromSource from Lua.

Cheers!