diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:29:58 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:29:58 +0100 |
commit | bcaee968761c1d2e85c20925b237480c87da9747 (patch) | |
tree | f91ab2c2396a6365eb0696902e63975dc18b5259 /src/crepe/facade/Font.h | |
parent | bfc07676707eae2c0161c6b86ccdd1583d96f71b (diff) |
tmp fix
Diffstat (limited to 'src/crepe/facade/Font.h')
-rw-r--r-- | src/crepe/facade/Font.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crepe/facade/Font.h b/src/crepe/facade/Font.h index 91c59c0..0b1768b 100644 --- a/src/crepe/facade/Font.h +++ b/src/crepe/facade/Font.h @@ -1,10 +1,11 @@ #pragma once #include <SDL2/SDL_ttf.h> +#include <functional> #include <memory> +#include <string> #include "../Resource.h" -#include "../api/Config.h" namespace crepe { @@ -24,7 +25,6 @@ public: * \param mediator The Mediator object used for managing the SDL context or related systems. */ Font(const Asset & src, Mediator & mediator); - ~Font(); /** * \brief Gets the underlying TTF_Font resource. @@ -36,9 +36,13 @@ public: */ TTF_Font * get_font() const; + const std::string & get_path() const noexcept; + private: //! The SDL_ttf font object with custom deleter. std::unique_ptr<TTF_Font, std::function<void(TTF_Font *)>> font; + + std::string path; }; } // namespace crepe |