aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/font.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 18:21:03 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 18:21:03 +0100
commit007fe1ecb5e9f76539cdffd6a96afe22c8b2d214 (patch)
treee3a3fc0984b77e0632a7e869f66553edceebedfc /src/crepe/facade/font.h
parentc585731ab4557e2a03be9630a54295a3700103fc (diff)
save
Diffstat (limited to 'src/crepe/facade/font.h')
-rw-r--r--src/crepe/facade/font.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/crepe/facade/font.h b/src/crepe/facade/font.h
deleted file mode 100644
index a8d8040..0000000
--- a/src/crepe/facade/font.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-#include <memory>
-#include <SDL2/SDL_ttf.h>
-
-#include "../api/Asset.h"
-
-namespace crepe {
-
-/**
- * \brief Font resource facade
- *
- * This class is a wrapper around an SDL_ttf font instance, encapsulating font loading and usage.
- */
-class Font : public Resource{
-public:
- /**
- * \param res A unique pointer to an Asset holding the font resource.
- */
- Font(const Asset & src, Mediator & mediator);
-
- /**
- * \brief Destructor to clean up font resources.
- */
- ~Font() = default;
-private:
- //! The SDL_ttf font object with custom deleter.
- std::unique_ptr<TTF_Font, decltype(&TTF_CloseFont)> font;
-};
-
-} // namespace crepe