mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add FontStyle 'bold' and 'italic' properties to 2D text
This commit is contained in:
parent
28f49ac948
commit
b15725913e
4 changed files with 76 additions and 25 deletions
|
|
@ -11,10 +11,10 @@ class Batch2D;
|
|||
class Batch3D;
|
||||
class Camera;
|
||||
|
||||
enum class FontStyle {
|
||||
none,
|
||||
shadow,
|
||||
outline
|
||||
struct FontStyle {
|
||||
bool bold = false;
|
||||
bool italic = false;
|
||||
glm::vec4 color {1, 1, 1, 1};
|
||||
};
|
||||
|
||||
class Font {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue