1 #ifndef BLANK_UI_MESSAGEBOX_HPP_
2 #define BLANK_UI_MESSAGEBOX_HPP_
5 #include "../graphics/align.hpp"
6 #include "../graphics/glm.hpp"
7 #include "../graphics/PrimitiveMesh.hpp"
21 explicit MessageBox(const Font &);
23 void Position(const glm::vec3 &, Gravity) noexcept;
25 void Foreground(const glm::vec4 &col) noexcept { fg = col; }
26 void Background(const glm::vec4 &col) noexcept { bg = col; dirty = true; }
28 void PushLine(const char *);
29 void PushLine(const std::string &l) {
33 void Render(Viewport &) noexcept;
40 std::deque<Text> lines;
41 std::size_t max_lines;
47 PrimitiveMesh::Color bg;
48 PrimitiveMesh::Color fg;
50 PrimitiveMesh bg_mesh;