diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2024-05-25 01:36:35 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2024-05-25 01:36:35 +0300 |
commit | 4aa2b1e558993e0d81bcf5b694dca651a7943649 (patch) | |
tree | a9ed5b4d5823c4acf555ab32363d0b252cc6bc53 /src/state.h | |
parent | fcbd6e48a2a291be1d15c87b94d0045771dbb088 (diff) | |
download | cgame-4aa2b1e558993e0d81bcf5b694dca651a7943649.tar.gz cgame-4aa2b1e558993e0d81bcf5b694dca651a7943649.tar.bz2 cgame-4aa2b1e558993e0d81bcf5b694dca651a7943649.zip |
aasaaap!
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 5 |
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; } |