Closed ernestask closed 1 year ago
@svenpanne, do you think the data constructors should be hidden in general? If the one for Shader
wasn’t hidden, it would still be possible to go through OpenGLRaw
to achieve things.
So I’ll implement additional API in the meantime, since I find myself in need.
Currently, there is no convenient way to specialize shaders, so this commit adds a way to do so via a SettableStateVar.
Fixes https://github.com/haskell-opengl/OpenGL/issues/92