]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/Program.hpp
glm backwards compatibility
[blank.git] / src / graphics / Program.hpp
index a67a0b374eb793681b4502c79ce3b68573e4cc81..7f6590127ab22cf53788d4e0a94290a5e4b8a16f 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef BLANK_GRAPHICS_PROGRAM_HPP_
 #define BLANK_GRAPHICS_PROGRAM_HPP_
 
+#include "glm.hpp"
+
 #include <iosfwd>
 #include <list>
 #include <GL/glew.h>
@@ -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: