From 898b8c95f1f904307c02e978b57301cf1cb0560f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 23 Oct 2021 01:39:57 +0200 Subject: Allow rendering vertices directly --- src/graphics/vertex_buffer.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/graphics/vertex_buffer.c') diff --git a/src/graphics/vertex_buffer.c b/src/graphics/vertex_buffer.c index 746cfeb..ccdcd84 100644 --- a/src/graphics/vertex_buffer.c +++ b/src/graphics/vertex_buffer.c @@ -17,21 +17,6 @@ static unsigned int mgl_vertex_buffer_usage_to_gl_usage(mgl_vertex_buffer_usage return 0; } -static unsigned int mgl_primitive_type_to_gl_mode(mgl_primitive_type primitive_type) { - switch(primitive_type) { - case MGL_PRIMITIVE_POINTS: return GL_POINTS; - case MGL_PRIMITIVE_LINES: return GL_LINES; - case MGL_PRIMITIVE_LINE_STRIP: return GL_LINE_STRIP; - case MGL_PRIMITIVE_TRIANGLES: return GL_TRIANGLES; - case MGL_PRIMITIVE_TRIANGLE_STRIP: return GL_TRIANGLE_STRIP; - case MGL_PRIMITIVE_TRIANGLE_FAN: return GL_TRIANGLE_FAN; - case MGL_PRIMITIVE_QUADS: return GL_QUADS; - case MGL_PRIMITIVE_QUAD_STRIP: return GL_QUAD_STRIP; - case MGL_PRIMITIVE_POLYGON: return GL_POLYGON; - } - return 0; -} - int mgl_vertex_buffer_init(mgl_vertex_buffer *self, mgl_primitive_type primitive_type, mgl_vertex_buffer_usage usage) { self->id = 0; self->vertex_count = 0; -- cgit v1.2.3