aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-16 23:00:13 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-16 23:00:13 +0100
commitfce10251d772af129531896965a908dc6d881c4b (patch)
tree523ae32418de907d3e39d69b9591fe81d447acf9 /src/crepe/facade
parentd33dbdff59693377d06d83225b0fe78c3168c464 (diff)
small changes
Diffstat (limited to 'src/crepe/facade')
-rw-r--r--src/crepe/facade/Font.cpp1
-rw-r--r--src/crepe/facade/Font.h4
-rw-r--r--src/crepe/facade/FontFacade.cpp1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/facade/Font.cpp b/src/crepe/facade/Font.cpp
index 333e500..74dfe18 100644
--- a/src/crepe/facade/Font.cpp
+++ b/src/crepe/facade/Font.cpp
@@ -1,4 +1,5 @@
#include "../api/Config.h"
+#include "../api/Asset.h"
#include "Font.h"
diff --git a/src/crepe/facade/Font.h b/src/crepe/facade/Font.h
index e93bfe9..3ff156f 100644
--- a/src/crepe/facade/Font.h
+++ b/src/crepe/facade/Font.h
@@ -1,13 +1,14 @@
#pragma once
+
#include <SDL2/SDL_ttf.h>
#include <memory>
#include "../Resource.h"
-#include "../api/Asset.h"
#include "../api/Config.h"
namespace crepe {
+class Asset;
/**
* \brief Resource for managing font creation and destruction
*
@@ -16,6 +17,7 @@ namespace crepe {
* when this object is destroyed.
*/
class Font : public Resource {
+
public:
/**
* \param src The Asset containing the font file path and metadata to load the font.
diff --git a/src/crepe/facade/FontFacade.cpp b/src/crepe/facade/FontFacade.cpp
index a63b022..4a991c6 100644
--- a/src/crepe/facade/FontFacade.cpp
+++ b/src/crepe/facade/FontFacade.cpp
@@ -1,4 +1,3 @@
-#include <SDL2/SDL_ttf.h>
#include <fontconfig/fontconfig.h>
#include <stdexcept>