1 #ifndef BLOBS_GRAPHICS_CANVAS_HPP_
2 #define BLOBS_GRAPHICS_CANVAS_HPP_
6 #include "SimpleVAO.hpp"
20 Canvas(const Canvas &) = delete;
21 Canvas &operator =(const Canvas &) = delete;
23 Canvas(Canvas &&) = delete;
24 Canvas &operator =(Canvas &&) = delete;
27 void Resize(float w, float h) noexcept;
28 void ZIndex(float) noexcept;
29 void SetColor(const glm::vec4 &) noexcept;
31 void Activate() noexcept;
32 void DrawLine(const glm::vec2 &, const glm::vec2 &, float width = 1.0f);
33 void DrawRect(const glm::vec2 &, const glm::vec2 &, float width = 1.0f);
34 void FillRect(const glm::vec2 &, const glm::vec2 &);
45 SimpleVAO<Attributes, std::uint8_t> vao;