texture manager, going to pull out into a resource manager
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user