aboutsummaryrefslogtreecommitdiff
path: root/include/Text.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-13 04:21:35 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-13 04:21:35 +0200
commitf51a76e6febb27923e3ca8e853974a24465c4739 (patch)
tree03eda2424e5ec20d076e057ee55a04756f005e08 /include/Text.hpp
parentc7e10b0910473c99dbc139f514220b134093c9f0 (diff)
Support braille, temporary disable video cache to support seeking in long videos on youtube...
Diffstat (limited to 'include/Text.hpp')
-rw-r--r--include/Text.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index a39b2ba..72fdd66 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -42,6 +42,7 @@ namespace QuickMedia
enum class TextType {
LATIN,
CJK,
+ SYMBOL,
EMOJI
};
@@ -146,11 +147,8 @@ namespace QuickMedia
sf::String str; // TODO: Remove this for non-editable text??? also replace with std::string? then we get more efficient editing of text
const bool bold_font;
unsigned int characterSize;
- // 1: Normal text
- // 2: CJK
- // 3: Emoji
- std::array<sf::VertexArray, 3> vertices;
- std::array<sf::VertexBuffer, 3> vertex_buffers;
+ std::array<sf::VertexArray, 4> vertices;
+ std::array<sf::VertexBuffer, 4> vertex_buffers;
float maxWidth;
sf::Vector2f position;
sf::Color color;