aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h8
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();