From fe79577396231f2edb7927f1f61ce814f03851a7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Feb 2022 17:12:49 +0100 Subject: add basic engine graphics --- src/bootstrap.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/bootstrap.cpp') diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index ce07621..8a8aa25 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -2,12 +2,18 @@ // Interfaces #include "interfaces/argument_parser.hpp" +#include "interfaces/bounds.hpp" #include "interfaces/game.hpp" +#include "interfaces/matrix.hpp" #include "interfaces/randomization.hpp" +#include "interfaces/scene.hpp" #include "interfaces/vector2.hpp" // Implementations #include "argument_parser.hpp" +#include "engine/graphics/bounds.hpp" +#include "engine/graphics/scene.hpp" +#include "engine/graphics/string_matrix.hpp" #include "engine/graphics/vector2.hpp" #include "game/game.hpp" #include "randomization/generator.hpp" @@ -15,6 +21,7 @@ #include #include +#include Container bootstrap() { @@ -22,6 +29,7 @@ Container bootstrap() container.bind().to(); container.bind().to(); + container.bind().to(); container.bind().to_factory( [](const unsigned int &seed) @@ -44,5 +52,18 @@ Container bootstrap() std::make_shared(options)); }); + container.bind>().to_factory( + [](const IBounds &bounds) + { + return std::dynamic_pointer_cast>( + std::make_shared(bounds)); + }); + + container.bind().to_factory( + [](const IBoundsOptions &options) + { + return std::dynamic_pointer_cast(std::make_shared(options)); + }); + return container; } -- cgit v1.2.3-18-g5258