mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 08:00:46 +03:00
36 lines
691 B
C++
36 lines
691 B
C++
#include <iostream>
|
|
|
|
#include "../main/game.h"
|
|
#include "graphics/glfw_mgmt.h"
|
|
#include "graphics/vulkan_mgmt.h"
|
|
|
|
int main() {
|
|
|
|
using namespace progressia;
|
|
|
|
desktop::initializeGlfw();
|
|
desktop::initializeVulkan();
|
|
desktop::showWindow();
|
|
|
|
main::initialize(desktop::getVulkan()->getGint());
|
|
|
|
while (desktop::shouldRun()) {
|
|
bool abortFrame = !desktop::startRender();
|
|
if (abortFrame) {
|
|
continue;
|
|
}
|
|
|
|
main::renderTick();
|
|
|
|
desktop::endRender();
|
|
desktop::doGlfwRoutine();
|
|
}
|
|
|
|
desktop::getVulkan()->waitIdle();
|
|
main::shutdown();
|
|
desktop::shutdownVulkan();
|
|
desktop::shutdownGlfw();
|
|
|
|
return 0;
|
|
}
|