src/primitives.c

changeset 65
9c44c55d327a
parent 64
f18dc427f86f
equal deleted inserted replaced
64:f18dc427f86f 65:9c44c55d327a
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 }

mercurial