lxgui
gui_quad.hpp
1 #ifndef LXGUI_GUI_QUAD_HPP
2 #define LXGUI_GUI_QUAD_HPP
3 
4 #include "lxgui/gui_material.hpp"
5 #include "lxgui/gui_vertex.hpp"
6 #include "lxgui/lxgui.hpp"
7 #include "lxgui/utils.hpp"
8 
9 #include <array>
10 #include <memory>
11 
12 namespace lxgui::gui {
13 
15 enum class blend_mode { normal, add, mul };
16 
18 struct quad {
19  std::array<vertex, 4> v;
20  std::shared_ptr<material> mat;
22 };
23 
24 } // namespace lxgui::gui
25 
26 #endif
blend_mode
Specifies the rendering mode of a quad.
Definition: gui_quad.hpp:15
Simple structure holding four vertices and a material.
Definition: gui_quad.hpp:18
blend_mode blend
Definition: gui_quad.hpp:21
std::shared_ptr< material > mat
Definition: gui_quad.hpp:20
std::array< vertex, 4 > v
Definition: gui_quad.hpp:19