aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-14 14:45:10 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-14 14:45:10 +0100
commitfda61be91cd8667fa2b51e3b8a17ba6b93b728c8 (patch)
treef44ea9104461ef11ca2441e660485e127da2f64a /src/example
parent93f0951738d3ac7b0249b5064c3ee7b6270eeb3a (diff)
feedback changes
Diffstat (limited to 'src/example')
-rw-r--r--src/example/loadfont.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp
index a52e7f0..6020908 100644
--- a/src/example/loadfont.cpp
+++ b/src/example/loadfont.cpp
@@ -21,7 +21,8 @@ int main() {
std::unique_ptr<Font> font = std::make_unique<Font>(asset, mediator);
// Get the TTF_Font from the Font object
TTF_Font* ttf_font = font->get_font();
-
+ //example if the asset is not correct for font
+ //std::unique_ptr<Font> fontThrow = std::make_unique<Font>(Asset("../help.txt"), mediator);
// Check if the font is loaded properly
if (ttf_font != nullptr) {
std::cout << "Font successfully loaded!" << std::endl;