summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-22 21:09:04 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-22 21:17:11 +1100
commit4fa2db8e3dbcca107af1b6bb027cbcb752199705 (patch)
treefca6e223757b777c9cf81e7ec0d5ec18c41f3b65
parent7d8d503cb458f8addeaa20f61696814cefc2328d (diff)
swap PCs
-rw-r--r--src/renderer/backends/backend_vulkan.c23
-rw-r--r--src/renderer/render.h1
2 files changed, 23 insertions, 1 deletions
diff --git a/src/renderer/backends/backend_vulkan.c b/src/renderer/backends/backend_vulkan.c
index 6347e27..bf2234d 100644
--- a/src/renderer/backends/backend_vulkan.c
+++ b/src/renderer/backends/backend_vulkan.c
@@ -1 +1,22 @@
-// #FUTURE \ No newline at end of file
+#define CEL_PLATFORM_LINUX
+
+#include "defines.h"
+#include "file.h"
+#include "log.h"
+#include "maths_types.h"
+#include "render_types.h"
+
+#include <stdlib.h>
+
+#if CEL_REND_BACKEND_VULKAN
+
+#include <glad/glad.h>
+
+#include <glfw3.h>
+
+typedef struct vulkan_context vulkan_context;
+static vulkan_context context;
+
+/** @brief Internal backend state */
+typedef struct vulkan_state {
+} vulkan_state; \ No newline at end of file
diff --git a/src/renderer/render.h b/src/renderer/render.h
index 3a06972..db74acc 100644
--- a/src/renderer/render.h
+++ b/src/renderer/render.h
@@ -28,6 +28,7 @@ struct render_packet;
void render_frame_begin(renderer* ren);
void render_frame_end(renderer* ren);
+void render_frame_draw(renderer* ren);
// --- models meshes
void model_upload_meshes(renderer* ren, model* model);