From 047b4155c312080cbaea0e9018305f5a8c612623 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 15 Jun 2025 16:08:00 +0200 Subject: [PATCH] make the three triangles of the screen --- src/io/render.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/io/render.c b/src/io/render.c index cdcf811..120d906 100644 --- a/src/io/render.c +++ b/src/io/render.c @@ -13,7 +13,7 @@ // include GLFW #include -#define VERTC 1 +#define VERTC 3 static GLuint pipe; static GLuint vbo; // vertex buffer object static GLuint vao; // vertex array object @@ -21,7 +21,9 @@ static GLuint screen_loc; // location to where OpenGL sends to the shaders of th static void screen_resize(int w, int h) { int32_t verts[VERTC][4] = { - {0, h, w, -20}, + {0, 0, w, 20 }, + {0, 20, w, h - 40}, + {0, h, w, -20 }, }; glUniform2i(screen_loc, w, h); // send the screen dimensions to the shader pipeline