From e37a174979059a97c342c51b741f4f89609830c4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 16 May 2021 20:25:15 +0200 Subject: Use vertex buffer for rendering text --- include/Body.hpp | 1 + include/Text.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 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 vertices; - //sf::VertexBuffer vertex_buffers[3]; + std::array vertex_buffers; float maxWidth; sf::Vector2f position; sf::Color color; -- cgit v1.2.3