aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/vertex.h
blob: e4fef34e38377e0c73245d5f98af0beceb92d07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;
    mgl_vec2f texcoords;
    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 */