]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/BlockLighting.hpp
glm backwards compatibility
[blank.git] / src / graphics / BlockLighting.hpp
index 321cf79bdb598bf8b54fb61854c24e39e206c156..d0d4ea4997f12283576eec354862cf9440b8baf3 100644 (file)
@@ -1,14 +1,16 @@
 #ifndef BLANK_GRAPHICS_BLOCKLIGHTING_HPP_
 #define BLANK_GRAPHICS_BLOCKLIGHTING_HPP_
 
+#include "glm.hpp"
 #include "Program.hpp"
 
 #include <GL/glew.h>
-#include <glm/glm.hpp>
 
 
 namespace blank {
 
+class ArrayTexture;
+
 class BlockLighting {
 
 public:
@@ -16,6 +18,7 @@ public:
 
        void Activate() noexcept;
 
+       void SetTexture(ArrayTexture &) noexcept;
        void SetFogDensity(float) noexcept;
 
        void SetM(const glm::mat4 &m) noexcept;
@@ -37,6 +40,7 @@ private:
 
        GLuint mv_handle;
        GLuint mvp_handle;
+       GLuint sampler_handle;
        GLuint light_direction_handle;
        GLuint light_color_handle;
        GLuint fog_density_handle;