aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/Font.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 21:26:03 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 21:26:03 +0100
commit5ef7c56e44a864e580810952450c43c0f9a7b6e0 (patch)
tree2a0faeaef514558b991832fbae63500f9f6e0228 /src/crepe/facade/Font.h
parentf9f06f54dd1a66350afd42f6eec761565a4d3d77 (diff)
make format
Diffstat (limited to 'src/crepe/facade/Font.h')
-rw-r--r--src/crepe/facade/Font.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/crepe/facade/Font.h b/src/crepe/facade/Font.h
index fbc1b8f..983ef31 100644
--- a/src/crepe/facade/Font.h
+++ b/src/crepe/facade/Font.h
@@ -2,9 +2,9 @@
#include <SDL2/SDL_ttf.h>
#include <memory>
+#include "../Resource.h"
#include "../api/Asset.h"
#include "../api/Config.h"
-#include "../Resource.h"
namespace crepe {
@@ -15,15 +15,15 @@ namespace crepe {
* It loads a font from an Asset and manages its lifecycle. The font is automatically unloaded
* when this object is destroyed.
*/
-class Font : public Resource{
+class Font : public Resource {
public:
- /**
+ /**
* \param src The Asset containing the font file path and metadata to load the font.
* \param mediator The Mediator object used for managing the SDL context or related systems.
*/
- Font(const Asset & src, Mediator & mediator);
+ Font(const Asset & src, Mediator & mediator);
- /**
+ /**
* \brief Gets the underlying TTF_Font resource.
*
* This function returns the raw pointer to the SDL_ttf TTF_Font object that represents
@@ -31,11 +31,11 @@ public:
*
* \return The raw TTF_Font object wrapped in a unique pointer.
*/
- TTF_Font* get_font() const;
+ TTF_Font * get_font() const;
private:
- //! The SDL_ttf font object with custom deleter.
- std::unique_ptr<TTF_Font, decltype(&TTF_CloseFont)> font;
+ //! The SDL_ttf font object with custom deleter.
+ std::unique_ptr<TTF_Font, decltype(&TTF_CloseFont)> font;
};
} // namespace crepe