feat: add polygon tool

This commit is contained in:
Beriff
2026-03-09 23:26:12 +07:00
parent 9b4248981e
commit 2bdcbfae1f
8 changed files with 93 additions and 41 deletions

View File

@@ -94,6 +94,8 @@ static void init_geometry(void) {
}
static gboolean render(GtkGLArea* area, GdkGLContext* context,
VektorShapeBuffer* prims) {
vb.count = 0;
vektor_rasterize(&vb, prims);
glBufferData(GL_ARRAY_BUFFER, vb.count * sizeof(Vertex), vb.vertices,