X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FProgram.hpp;h=ff01f9dafd1e78b17b2b3980264cf603b6f25a04;hb=e2355b50a0d31f675e16593299256334c2baa2c4;hp=a67a0b374eb793681b4502c79ce3b68573e4cc81;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/graphics/Program.hpp b/src/graphics/Program.hpp index a67a0b3..ff01f9d 100644 --- a/src/graphics/Program.hpp +++ b/src/graphics/Program.hpp @@ -4,6 +4,7 @@ #include #include #include +#include namespace blank { @@ -28,6 +29,12 @@ public: GLint AttributeLocation(const GLchar *name) const noexcept; GLint UniformLocation(const GLchar *name) const noexcept; + void Uniform(GLint, GLint) noexcept; + void Uniform(GLint, float) noexcept; + void Uniform(GLint, const glm::vec3 &) noexcept; + void Uniform(GLint, const glm::vec4 &) noexcept; + void Uniform(GLint, const glm::mat4 &) noexcept; + void Use() const noexcept { glUseProgram(handle); } private: