Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
text_parser.h
Go to the documentation of this file.
1 #pragma once
2 #include "engine_structs.h"
3 
4 
5 struct TextToken {
6  std::string text;
7  glm::vec4 color = {1.0f, 1.0f, 1.0f, 1.0f};
8  bool bold = false;
9  bool italic = false;
10  bool strike = false;
11 
12  static std::vector<TextToken> parse_bbcode(const std::string& text, const glm::vec4& default_color);
13 
14 };
Definition: text_parser.h:5
bool strike
Definition: text_parser.h:10
bool italic
Definition: text_parser.h:9
static std::vector< TextToken > parse_bbcode(const std::string &text, const glm::vec4 &default_color)
Definition: text_parser.cpp:6
glm::vec4 color
Definition: text_parser.h:7
std::string text
Definition: text_parser.h:6
bool bold
Definition: text_parser.h:8