aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/vertex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/graphics/vertex.h')
-rw-r--r--include/mgl/graphics/vertex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mgl/graphics/vertex.h b/include/mgl/graphics/vertex.h
index 69400b4..e4fef34 100644
--- a/include/mgl/graphics/vertex.h
+++ b/include/mgl/graphics/vertex.h
@@ -1,8 +1,12 @@
#ifndef MGL_VERTEX_H
#define MGL_VERTEX_H
+#include "primitive_type.h"
#include "color.h"
#include "../system/vec.h"
+#include <stddef.h>
+
+typedef struct mgl_context mgl_context;
typedef struct {
mgl_vec2f position;
@@ -10,4 +14,6 @@ typedef struct {
mgl_color color;
} mgl_vertex;
+void mgl_vertices_draw(mgl_context *context, const mgl_vertex *vertices, size_t vertex_count, mgl_primitive_type primitive_type);
+
#endif /* MGL_VERTEX_H */