1 #ifndef BLOBS_GRAPHICS_CREATURESKIN_HPP_
2 #define BLOBS_GRAPHICS_CREATURESKIN_HPP_
17 static constexpr int MAX_LIGHTS = 8;
23 CreatureSkin(const CreatureSkin &) = delete;
24 CreatureSkin &operator =(const CreatureSkin &) = delete;
26 CreatureSkin(CreatureSkin &&) = delete;
27 CreatureSkin &operator =(CreatureSkin &&) = delete;
30 void Activate() noexcept;
32 void SetMVP(const glm::mat4 &m, const glm::mat4 &v, const glm::mat4 &p) noexcept;
33 void SetTexture(ArrayTexture &) noexcept;
34 void SetLight(int n, const glm::vec3 &pos, const glm::vec3 &color, float strength) noexcept;
35 void SetNumLights(int n) noexcept;
37 const glm::mat4 &M() const noexcept { return m; }
38 const glm::mat4 &V() const noexcept { return v; }
39 const glm::mat4 &P() const noexcept { return p; }
40 const glm::mat4 &MV() const noexcept { return mv; }
41 const glm::mat4 &MVP() const noexcept { return mvp; }
57 GLuint sampler_handle;
59 GLuint num_lights_handle;
60 GLuint light_handle[MAX_LIGHTS * 3];