texture manager, going to pull out into a resource manager

This commit is contained in:
2021-12-04 09:09:59 -05:00
parent 7b2a0719b1
commit 3473e3dab7
12 changed files with 127 additions and 10 deletions

View File

@@ -9,14 +9,18 @@
#include "game/game.hpp"
#include "rendering/renderer.hpp"
static const bool SHOW_FPS = true;
static const std::string RESOURCE_DIR = "assets";
class Engine {
public:
Engine(std::unique_ptr<Game> game, std::unique_ptr<Renderer> renderer);
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();
private:
std::unique_ptr<Game> game;
std::unique_ptr<Renderer> renderer;
std::unique_ptr<Game> game = nullptr;
std::unique_ptr<Renderer> renderer = nullptr;
};