diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -11,9 +11,14 @@ graphics_t graphics; int _create_surface(VkInstance instance, VkSurfaceKHR *surface); vertex_t vertices[] = { - {{0.0f, -0.5f}, {1.0f, 0.0f, 0.0f}}, - {{0.5f, 0.5f}, {0.0f, 1.0f, 0.0f}}, - {{-0.5f, 0.5f}, {0.0f, 0.0f, 1.0f}} + {{-0.5f, -0.5f}, {1.0f, 0.0f, 0.0f}}, + {{0.5f, -0.5f}, {0.0f, 1.0f, 0.0f}}, + {{0.5f, 0.5f}, {0.0f, 0.0f, 1.0f}}, + {{-0.5f, 0.5f}, {1.0f, 1.0f, 1.0f}} +}; + +u32 indices[] = { + 0, 1, 2, 2, 3, 0 }; int main(void) @@ -56,6 +61,8 @@ int main(void) grph_info.vertices = vertices; grph_info.nvertices = ARR_SIZE(vertices); + grph_info.indices = indices; + grph_info.nindices = ARR_SIZE(indices); grph_info.surface_func = _create_surface; |