1
Feature requests / Vertex Shader
« on: February 21, 2011, 02:45:17 am »
Sorry to resurrect an old thread. I've also found setting a custom vertex shader useful.
I realize you want to keep your 2D api simple, but as a compromise, maybe you could add a member variable for the default vertex shader (which you have to setup anyway) and make the shader strings and CompileProgram protected. That way, those of us needing it can derive from sf::Shader.
I realize you want to keep your 2D api simple, but as a compromise, maybe you could add a member variable for the default vertex shader (which you have to setup anyway) and make the shader strings and CompileProgram protected. That way, those of us needing it can derive from sf::Shader.