aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 15:54:17 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 15:54:17 +0100
commit8d53634e2f47a616ff90f114fe1afbc2ba4df094 (patch)
tree5a5e11e9c54c845a5dd570bb76aa73724acc5dd9 /src/crepe/facade/SDLContext.h
parent0524c68cc4eb9fbd36c17ed4f5d8152cac2f977b (diff)
parenta8ccf7fe8662086bb223aa4eafd0f85e717d16cf (diff)
Merge branch 'master' into niels/UI
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index 01d82a0..1dada74 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -18,7 +18,9 @@
#include "api/KeyCodes.h"
#include "api/Sprite.h"
#include "api/Transform.h"
+#include "types.h"
+#include "EventData.h"
#include "FontFacade.h"
namespace crepe {
@@ -251,6 +253,20 @@ private:
CameraAuxiliaryData cam_aux_data;
private:
+ //! instance of the font_facade
+ FontFacade font_facade{};
+
+public:
+ /**
+ * \brief Function to Get asset from font_family
+ *
+ * This function uses the FontFacade function to convert a font_family to an asset.
+ *
+ * \param font_family name of the font style that needs to be used (will return an asset with default font path of the font_family doesnt exist)
+ *
+ * \return asset with the font style absolute path
+ */
+ Asset get_font_from_name(const std::string & font_family);
//! variable to store the state of each key (true = pressed, false = not pressed)
keyboard_state_t keyboard_state;
//! lookup table for converting SDL_SCANCODES to Keycodes
@@ -353,22 +369,6 @@ private:
{SDL_SCANCODE_RALT, Keycode::RIGHT_ALT},
{SDL_SCANCODE_RGUI, Keycode::RIGHT_SUPER},
{SDL_SCANCODE_MENU, Keycode::MENU}};
-
-private:
- //! instance of the font_facade
- FontFacade font_facade{};
-
-public:
- /**
- * \brief Function to Get asset from font_family
- *
- * This function uses the FontFacade function to convert a font_family to an asset.
- *
- * \param font_family name of the font style that needs to be used (will return an asset with default font path of the font_family doesnt exist)
- *
- * \return asset with the font style absolute path
- */
- Asset get_font_from_name(const std::string & font_family);
};
} // namespace crepe