summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-05-25 01:36:35 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-05-25 01:36:35 +0300
commit4aa2b1e558993e0d81bcf5b694dca651a7943649 (patch)
treea9ed5b4d5823c4acf555ab32363d0b252cc6bc53 /src/state.h
parentfcbd6e48a2a291be1d15c87b94d0045771dbb088 (diff)
downloadcgame-4aa2b1e558993e0d81bcf5b694dca651a7943649.tar.gz
cgame-4aa2b1e558993e0d81bcf5b694dca651a7943649.tar.bz2
cgame-4aa2b1e558993e0d81bcf5b694dca651a7943649.zip
aasaaap!
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h
index 2158b5b..b56544a 100644
--- a/src/state.h
+++ b/src/state.h
@@ -1,6 +1,7 @@
#include <SDL2/SDL.h>
#include <vulkan/vulkan.h>
#include <shaderc/shaderc.h>
+#include <vulkan/vulkan_core.h>
#define CGLM_FORCE_DEPTH_ZERO_TO_ONE
@@ -109,6 +110,8 @@ typedef struct state {
VkImage vk_depth_image;
VkDeviceMemory vk_depth_image_memory;
VkImageView vk_depth_image_view;
+
+ VkPolygonMode polygon_mode;
} state_t ;
static void
@@ -158,4 +161,6 @@ init_state(state_t * s)
s->prev_vert_result = NULL;
s->prev_frag_result = NULL;
+
+ s->polygon_mode = VK_POLYGON_MODE_FILL;
}