32 lines
542 B
C++
32 lines
542 B
C++
|
#pragma once
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
#include "../renderer/renderer.hpp"
|
||
|
#include "../callback.hpp"
|
||
|
#include "../node/node.hpp"
|
||
|
|
||
|
namespace hibis {
|
||
|
class Engine {
|
||
|
public:
|
||
|
Engine(Renderer* renderer, LoggerCallback logger);
|
||
|
~Engine();
|
||
|
|
||
|
void runNodeProcesses();
|
||
|
|
||
|
void runNodePhysicsProcesses();
|
||
|
|
||
|
void drawNodes();
|
||
|
|
||
|
const char* getEngineVersion();
|
||
|
private:
|
||
|
Renderer* renderer;
|
||
|
//StopWatch watch;
|
||
|
float previousProcessTick;
|
||
|
float previousPhysicsProcessTick;
|
||
|
|
||
|
std::vector<Node*> nodeList;
|
||
|
LoggerCallback loggerCallback;
|
||
|
};
|
||
|
}
|