aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-16 20:58:02 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-16 20:58:02 +0100
commit9f3af4431853288c6e1ec0ff5b8f5bb0e6379b66 (patch)
tree82abb86c0841c9c03fc7bcc4cee6b5b2f702e6b2 /src
parente84717feb5a9435b96b6d10e77e699cea5d8bff9 (diff)
added const
Diffstat (limited to 'src')
-rw-r--r--src/crepe/api/Text.h2
-rw-r--r--src/example/loadfont.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
index fbb1ad6..ec0bf74 100644
--- a/src/crepe/api/Text.h
+++ b/src/crepe/api/Text.h
@@ -53,7 +53,7 @@ public:
//! Label text.
std::string text = "";
//! Font asset variable
- Asset font;
+ const Asset font;
//! Data instance
Data data;
};
diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp
index 35afdf7..a77e457 100644
--- a/src/example/loadfont.cpp
+++ b/src/example/loadfont.cpp
@@ -13,6 +13,7 @@ int main() {
// SDLFontContext font_facade;
Mediator mediator;
SDLContext sdl_context{mediator};
+ ComponentManager component_manager{mediator};
ResourceManager resource_manager{mediator};
try {
// Correct way to create a unique pointer for Text