aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-16 20:25:15 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-16 20:25:15 +0200
commite37a174979059a97c342c51b741f4f89609830c4 (patch)
tree4eaa23ed2675f7b047ac7693fcfc649dd40cfcb9 /include
parent2d36d7344a85d0895d0f8894a7412d10e5ff0c8a (diff)
Use vertex buffer for rendering text
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp1
-rw-r--r--include/Text.hpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index b5ca210..3106cc3 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -317,5 +317,6 @@ namespace QuickMedia {
std::shared_ptr<BodyItem> clicked_body_item = nullptr;
RoundedRectangle item_background;
RoundedRectangle reaction_background;
+ bool render_selected_item_bg = true;
};
} \ No newline at end of file
diff --git a/include/Text.hpp b/include/Text.hpp
index fbd850a..989edbb 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -147,7 +147,7 @@ namespace QuickMedia
// 2: CJK
// 3: Emoji
std::array<sf::VertexArray, 3> vertices;
- //sf::VertexBuffer vertex_buffers[3];
+ std::array<sf::VertexBuffer, 3> vertex_buffers;
float maxWidth;
sf::Vector2f position;
sf::Color color;