1 #ifndef BLOBS_GRAPHICS_SUNSURFACE_HPP_
2 #define BLOBS_GRAPHICS_SUNSURFACE_HPP_
5 #include "SimpleVAO.hpp"
19 SunSurface(const SunSurface &) = delete;
20 SunSurface &operator =(const SunSurface &) = delete;
22 SunSurface(SunSurface &&) = delete;
23 SunSurface &operator =(SunSurface &&) = delete;
26 void Activate() noexcept;
28 void SetM(const glm::mat4 &m) noexcept;
29 void SetV(const glm::mat4 &v) noexcept;
30 void SetVP(const glm::mat4 &v, const glm::mat4 &p) noexcept;
31 void SetMVP(const glm::mat4 &m, const glm::mat4 &v, const glm::mat4 &p) noexcept;
32 void SetLight(const glm::vec3 &color, float strength) noexcept;
34 const glm::mat4 &M() const noexcept { return m; }
35 const glm::mat4 &V() const noexcept { return v; }
36 const glm::mat4 &P() const noexcept { return p; }
37 const glm::mat4 &MV() const noexcept { return mv; }
38 const glm::mat4 &MVP() const noexcept { return mvp; }
40 void Draw() const noexcept;
46 SimpleVAO<Attributes, unsigned short> vao;
59 GLuint light_color_handle;
60 GLuint light_strength_handle;