mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-10-14 18:03:10 +03:00
Initial commit
This commit is contained in:
35
desktop/main.cpp
Normal file
35
desktop/main.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user