diff --git a/src/graphics/shader.hpp b/src/graphics/shader.hpp index 7585a2bb6..2ff315750 100644 --- a/src/graphics/shader.hpp +++ b/src/graphics/shader.hpp @@ -54,8 +54,8 @@ protected: void bypassUBO() const; - // ------------------------------------------------------------------------ - // Ends vararg template + // ======================================================================== + /** Ends recursion. */ template void loadAndAttachShader() { @@ -72,6 +72,7 @@ protected: loadAndAttachShader(args...); } // loadAndAttachShader // ------------------------------------------------------------------------ + /** Convenience interface using const char. */ template void loadAndAttachShader(GLint shader_type, const char *name, Types ... args) @@ -149,7 +150,7 @@ private: // ============================================== // setUniforms: Variadic template implementation. -protected: +public: /** Sets the uniforms for this shader. */ void setUniforms(const Args & ... args) const {