-
Notifications
You must be signed in to change notification settings - Fork 2
/
Text.h
26 lines (16 loc) · 695 Bytes
/
Text.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "renderer/Colors.h"
namespace ptgn {
namespace text {
// Load text into text manager. Font key must exist in the font manager
void Load(const char* text_key, const char* font_key, const char* text_content, const Color& text_color = color::BLACK);
// Unload text from text manager.
void Unload(const char* text_key);
// Set text content.
void SetContent(const char* text_key, const char* new_text_content);
// Set text color.
void SetColor(const char* text_key, const Color& new_text_color);
// Set text font to a font that has been loaded into the font manager.
void SetFont(const char* text_key, const char* new_font_key);
} // namespace text
} // namespace ptgn