1 #ifndef BLOBS_GRAPHICS_SUNSURFACE_HPP_
2 #define BLOBS_GRAPHICS_SUNSURFACE_HPP_
5 #include "SimpleVAO.hpp"
23 SunSurface(const SunSurface &) = delete;
24 SunSurface &operator =(const SunSurface &) = delete;
26 SunSurface(SunSurface &&) = delete;
27 SunSurface &operator =(SunSurface &&) = delete;
30 void Activate() noexcept;
32 void SetM(const glm::mat4 &m) noexcept;
33 void SetVP(const glm::mat4 &v, const glm::mat4 &p) noexcept;
34 void SetMVP(const glm::mat4 &m, const glm::mat4 &v, const glm::mat4 &p) noexcept;
35 void SetLight(const glm::vec3 &color, float strength) 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; }
43 void Draw() const noexcept;
49 SimpleVAO<Attributes, std::uint8_t> vao;
62 GLuint light_color_handle;
63 GLuint light_strength_handle;