X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FProgram.hpp;h=7f6590127ab22cf53788d4e0a94290a5e4b8a16f;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=a67a0b374eb793681b4502c79ce3b68573e4cc81;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/graphics/Program.hpp b/src/graphics/Program.hpp index a67a0b3..7f65901 100644 --- a/src/graphics/Program.hpp +++ b/src/graphics/Program.hpp @@ -1,6 +1,8 @@ #ifndef BLANK_GRAPHICS_PROGRAM_HPP_ #define BLANK_GRAPHICS_PROGRAM_HPP_ +#include "glm.hpp" + #include #include #include @@ -28,6 +30,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: