2022-05-28 11:32:17 +00:00
|
|
|
#include "BarinkEngine.h"
|
2022-05-27 20:47:36 +00:00
|
|
|
|
|
|
|
extern void Start(int argc, char* argv[]);
|
|
|
|
extern void UpdateApplication();
|
|
|
|
|
|
|
|
using namespace BarinkEngine;
|
|
|
|
|
|
|
|
bool ShouldQuit = false;
|
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
|
|
|
|
// Start Engine
|
|
|
|
Engine::Startup();
|
|
|
|
|
|
|
|
Start(argc, argv);
|
|
|
|
|
|
|
|
|
|
|
|
while (!ShouldQuit) {
|
|
|
|
//InputManager::PollEvents();
|
|
|
|
|
|
|
|
UpdateApplication();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Kill Engine
|
|
|
|
Engine::Shutdown();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-05-28 11:32:17 +00:00
|
|
|
void WARN(std::string message) {
|
|
|
|
spdlog::warn(message);
|
2022-05-27 20:47:36 +00:00
|
|
|
|
2022-05-28 11:32:17 +00:00
|
|
|
}
|