85 |
85 |
86 memset(primitives, 0, sizeof(AscPrimitives)); |
86 memset(primitives, 0, sizeof(AscPrimitives)); |
87 } |
87 } |
88 |
88 |
89 void asc_primitives_draw_plane(void) { |
89 void asc_primitives_draw_plane(void) { |
90 AscMesh const *mesh = &(asc_window_active->glctx.primitives.plane); |
90 AscMesh const *mesh = &(asc_active_window->glctx.primitives.plane); |
91 glBindVertexArray(mesh->vao); |
91 glBindVertexArray(mesh->vao); |
92 glDrawArrays(GL_TRIANGLE_STRIP, 0, mesh->vertices); |
92 glDrawArrays(GL_TRIANGLE_STRIP, 0, mesh->vertices); |
93 } |
93 } |