68 static const std::string subsystem_name;
84 std::expected<void, subsystem::error>
initialize()
override;
89 std::expected<void, subsystem::error>
terminate()
override;
90 std::string
name()
override;
99 static text &instance();
111 static void load(std::string font_name,
int font_size = 48);
128 float scale, glm::vec3 color);
132 static shader::name_t shader_name;
135 static bool initialized;
std::expected< void, subsystem::error > terminate() override
Cleaup resources.
bool is_initialized() override
Returns true if the subsystem is initialized.
static void render_text(std::string text, float x, float y, float scale, glm::vec3 color)
Render text.
std::string name() override
Returns the name of the sybsystem.
static void load(std::string font_name, int font_size=48)
Load a font.
static std::map< char, types::character > characters
Map of characters.
std::expected< void, subsystem::error > initialize() override
Initialize the text subsystem.