diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-16 20:58:02 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-16 20:58:02 +0100 |
commit | 9f3af4431853288c6e1ec0ff5b8f5bb0e6379b66 (patch) | |
tree | 82abb86c0841c9c03fc7bcc4cee6b5b2f702e6b2 | |
parent | e84717feb5a9435b96b6d10e77e699cea5d8bff9 (diff) |
added const
-rw-r--r-- | src/crepe/api/Text.h | 2 | ||||
-rw-r--r-- | src/example/loadfont.cpp | 1 |
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 |