summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-06-09 23:34:38 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-06-09 23:34:38 +0200
commit55bc67bf7989acfeadf0233a4bdd5660e8f0bb69 (patch)
treeab61b00bfd351c32cc99298f4466c86baf6d1514 /main
parent909304e44763c58c0ebbe40068a58784ebaced7b (diff)
Start work on render backend
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 0f0de71..3269bef 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -5,6 +5,7 @@
#include <deimos/core/status.h>
#include <deimos/vulkan/vulkan_loader.h>
#include <deimos/vulkan/vulkan_backend.h>
+#include <deimos/render/backend.h>
using namespace deimos;
@@ -13,7 +14,6 @@ static AllocatorApi* allocator_api;
static OsApi* os_api;
static VulkanBackendApi* vulkan_backend_api;
-
int main(int /* argc */, char* /* argv */[])
{
auto* api_registry = InitializeGlobalApiRegistry();
@@ -48,11 +48,15 @@ int main(int /* argc */, char* /* argv */[])
}
vulkan = s.value();
log_api->LogInfo("Vulkan backend created");
- }
+ }
+
+ IRenderBackend* render = vulkan->AsRenderBackend();
while (!os_api->window->QuitRequested(window))
{
os_api->window->Update(window);
+ render->BeginFrame();
+ render->EndFrame();
}
log_api->LogInfo("Goodbye");