hibiscus/core/application/application.hpp

32 lines
652 B
C++
Raw Normal View History

2023-05-26 21:41:51 +00:00
#pragma once
#include <vector>
#include <chrono>
#include <freetype/freetype.h>
2023-05-26 21:41:51 +00:00
#include "../renderer/renderer.hpp"
#include "../callback.hpp"
namespace hibis {
class Engine {
public:
Engine(Renderer* renderer, LoggerCallback logger);
~Engine();
2023-06-26 14:08:19 +00:00
float calculateDelta(bool isPhysics);
2023-05-26 21:41:51 +00:00
2023-06-26 14:08:19 +00:00
void updateDelta(bool isPhysics);
2023-05-26 21:41:51 +00:00
const char* getEngineVersion();
FT_Library mFreeTypeLibrary;
2023-05-26 21:41:51 +00:00
private:
Renderer* mRenderer;
2023-05-26 21:41:51 +00:00
//StopWatch watch;
std::chrono::time_point<std::chrono::steady_clock> mPreviousProcessTick;
std::chrono::time_point<std::chrono::steady_clock> mPreviousPhysicsProcessTick;
2023-05-26 21:41:51 +00:00
LoggerCallback mLoggerCallback;
2023-05-26 21:41:51 +00:00
};
}