Initial commit

This commit is contained in:
2022-10-09 17:25:45 +03:00
commit da10f7c5cd
60 changed files with 6255 additions and 0 deletions

35
desktop/main.cpp Normal file
View File

@@ -0,0 +1,35 @@
#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;
}