diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:58:52 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:58:52 +0100 |
commit | 8d3fd95ad8564740bb169f4e08bc085a232a4d83 (patch) | |
tree | 7d0334ee18d0f9278817143b73be0385516b4093 /src/crepe/facade/SDLContext.h | |
parent | 31fe4b1d44a7a7114c7ef8c0c5310a6070214cb2 (diff) |
workig rending text
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r-- | src/crepe/facade/SDLContext.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h index 33a4ff9..066a881 100644 --- a/src/crepe/facade/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -71,6 +71,12 @@ public: const double & scale; }; + struct RenderText { + const Text & text; + const Font & font; + const Transform & transform; + }; + public: //! EventType enum for passing eventType enum EventType { @@ -187,7 +193,7 @@ public: */ void draw(const RenderContext & ctx); - void draw_text(const Text & text, const Font & font); + void draw_text(const RenderText & data); //! Clears the screen, preparing for a new frame. void clear_screen(); |