switched up some pointers to shared, added some more rendering example

This commit is contained in:
2021-12-06 23:38:36 -05:00
parent 994a128c14
commit ea172110ea
14 changed files with 43 additions and 48 deletions

View File

@@ -25,7 +25,7 @@ public:
Engine(std::unique_ptr<Game> game, std::unique_ptr<Renderer> renderer,
std::unique_ptr<InputProcessor> input_processor);
void start_loop();
std::chrono::time_point<std::chrono::system_clock> render_fps(std::chrono::time_point<std::chrono::system_clock> end, std::chrono::time_point<std::chrono::system_clock> lastframe);
virtual ~Engine();
@@ -33,6 +33,7 @@ private:
std::unique_ptr<Game> game = nullptr;
std::unique_ptr<Renderer> renderer = nullptr;
std::unique_ptr<InputProcessor> input_processor = nullptr;
std::chrono::time_point<std::chrono::system_clock> render_fps(std::chrono::time_point<std::chrono::system_clock> end, std::chrono::time_point<std::chrono::system_clock> lastframe);
};
class MissingGameException : public std::exception {