1 #ifndef BLANK_GRAPHICS_TEXT_HPP_
2 #define BLANK_GRAPHICS_TEXT_HPP_
6 #include "../model/SpriteModel.hpp"
22 void Set(const Font &, const char *);
23 void Set(const Font &f, const std::string &s) {
27 void Position(const glm::vec3 &p) noexcept {
50 void Foreground(const glm::vec4 &col) noexcept { fg = col; }
51 void Background(const glm::vec4 &col) noexcept { bg = col; }
53 void Render(Viewport &) noexcept;
55 void Show() noexcept { visible = true; }
56 void Hide() noexcept { visible = false; }
57 void Toggle() noexcept { visible = !visible; }
58 bool Visible() const noexcept { return visible; }