aboutsummaryrefslogtreecommitdiff
path: root/src/example/loadfont.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 12:32:22 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 12:32:22 +0100
commit61148c757a1f742ff09e40e5347e74e638c7371c (patch)
treea2e40998981fa6f12430d2a1254250219f30d44f /src/example/loadfont.cpp
parente2162171c7ab72f450f73a0908946aa4a4dee5ee (diff)
update clang-format optionsHEADmaster
Diffstat (limited to 'src/example/loadfont.cpp')
-rw-r--r--src/example/loadfont.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp
index e459332..dd7caff 100644
--- a/src/example/loadfont.cpp
+++ b/src/example/loadfont.cpp
@@ -15,19 +15,21 @@ int main() {
// SDLFontContext font_facade;
Mediator mediator;
- FontFacade font_facade{};
- SDLContext sdl_context{mediator};
+ FontFacade font_facade {};
+ SDLContext sdl_context {mediator};
// ComponentManager component_manager{mediator};
- ResourceManager resource_manager{mediator};
+ ResourceManager resource_manager {mediator};
try {
// Correct way to create a unique pointer for Text
std::unique_ptr<Text> label = std::make_unique<Text>(
- 1, vec2(100, 100), vec2(0, 0), "OpenSymbol", Text::Data{}, "test text");
+ 1, vec2(100, 100), vec2(0, 0), "OpenSymbol", Text::Data {}, "test text"
+ );
// std::cout << "Path: " << label->font.get_path() << std::endl;
Asset asset1 = font_facade.get_font_asset("OpenSymbol");
std::cout << asset1.get_path() << std::endl;
std::unique_ptr<Text> label2 = std::make_unique<Text>(
- 1, vec2(100, 100), vec2(0, 0), "fsaafdafsdafsdafsdasfdds", Text::Data{});
+ 1, vec2(100, 100), vec2(0, 0), "fsaafdafsdafsdafsdasfdds", Text::Data {}
+ );
Asset asset = Asset("test test");
label->font.emplace(asset);
std::cout << label->font.value().get_path() << std::endl;