newpoly

view src/mgl.h @ 0:224206bc554a

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 15 Dec 2017 09:24:39 +0200
parents
children
line source
1 #ifndef MGL_H_
2 #define MGL_H_
4 #include <stdint.h>
6 enum {
7 MGL_POINTS = 1,
8 MGL_LINES = 2,
9 MGL_TRIANGLES = 3,
10 MGL_QUADS = 4
11 };
13 void mgl_begin(int prim);
14 void mgl_end(void);
16 void mgl_vertex3f(float x, float y, float z);
17 void mgl_vertex3x(int32_t x, int32_t y, int32_t z);
18 void mgl_texcoord2f(float u, float v);
19 void mgl_texcoord2x(int32_t u, int32_t v);
21 #endif /* MGL_H_ */