diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -10,6 +10,12 @@ 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}} +}; + int main(void) { int ret = 1; @@ -47,9 +53,12 @@ int main(void) grph_info.ext_count = ext_count; grph_info.extensions = (const char * const *)extensions; + + grph_info.vertices = vertices; + grph_info.nvertices = ARR_SIZE(vertices); grph_info.surface_func = _create_surface; - + // create the device graphics = graphics_create(&grph_info); if(!graphics) { |