aboutsummaryrefslogtreecommitdiff
path: root/src/example/loadfont.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 13:27:59 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 13:27:59 +0100
commite3c7542b56d80e0e9c8baf85f226c9d4da01845c (patch)
tree9b246d61f50f266ab60148f75896013f12d322a0 /src/example/loadfont.cpp
parentb99f5fc0f52fdd4ec96be844e643060503a8860b (diff)
testing something
Diffstat (limited to 'src/example/loadfont.cpp')
-rw-r--r--src/example/loadfont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp
index 9d59afc..36d00dd 100644
--- a/src/example/loadfont.cpp
+++ b/src/example/loadfont.cpp
@@ -26,7 +26,7 @@ int main() {
std::unique_ptr<Text> label2
= std::make_unique<Text>(1, vec2(100, 100), vec2(0, 0),"fsaafdafsdafsdafsdasfdds", Text::Data{});
Asset asset = Asset("test test");
- label->font = std::make_optional(asset);
+ label->font = asset;
std::cout << label->font.value().get_path() << std::endl;
// label2->font = std::make_optional(asset);
// std::cout << "Path: " << label2->font.get_path() << std::endl;