]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/BlendedSprite.hpp
glm backwards compatibility
[blank.git] / src / graphics / BlendedSprite.hpp
index 167b0136e322c789bfafd4245ae54790b7b47e60..b103a4db4d3d8bc109a5b4e14fc5d815bc374314 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef BLANK_GRAPHICS_BLENDEDSPRITE_HPP_
 #define BLANK_GRAPHICS_BLENDEDSPRITE_HPP_
 
+#include "glm.hpp"
 #include "Program.hpp"
 
 #include <GL/glew.h>
-#include <glm/glm.hpp>
 
 
 namespace blank {
@@ -25,6 +25,8 @@ public:
        void SetMVP(const glm::mat4 &m, const glm::mat4 &v, const glm::mat4 &p) noexcept;
 
        void SetTexture(Texture &) noexcept;
+       void SetFG(const glm::vec4 &) noexcept;
+       void SetBG(const glm::vec4 &) noexcept;
 
        const glm::mat4 &Projection() const noexcept { return projection; }
        const glm::mat4 &View() const noexcept { return view; }
@@ -39,6 +41,8 @@ private:
 
        GLuint mvp_handle;
        GLuint sampler_handle;
+       GLuint fg_handle;
+       GLuint bg_handle;
 
 };