aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 21:16:19 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 21:16:19 +0100
commit054b1ebea645bb8916f87e0d8f0f85d59e998eaf (patch)
tree8d49a3e516010dfe8faf8e0f457df58cba8344a9 /src/crepe/api
parent3ed4e51e23b5093a44a166b2f11ff66164e5cff1 (diff)
font facade added to SDLContext
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Text.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
index 51bab98..8436611 100644
--- a/src/crepe/api/Text.h
+++ b/src/crepe/api/Text.h
@@ -20,8 +20,6 @@ public:
Text(game_object_id_t id,const vec2 & dimensions, const vec2 & offset,std::string text,std::string font_family);
//! Text data that does not have to be set in the constructor
struct Data {
- //! Label text color.
- Color text_color = Color::BLACK;
/**
* \brief fontsize for text rendering
*
@@ -32,11 +30,15 @@ public:
* Instead this value is used to upscale the font texture which can cause blurring or distorted text when upscaling or downscaling too much.
*/
unsigned int font_size = 16;
+
//! Layer sorting level of the text
const int sorting_in_layer = 0;
//! Order within the sorting text
const int order_in_layer = 0;
+
+ //! Label text color.
+ Color text_color = Color::BLACK;
};
public:
//! font family name such as (Arial,Helvetica,Inter)