labyrinth
diff src/mesh.h @ 0:8ba79034e8a6
labyrinth example initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 15 Jan 2015 14:59:38 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/mesh.h Thu Jan 15 14:59:38 2015 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +#ifndef MESH_H_ 1.5 +#define MESH_H_ 1.6 + 1.7 +struct vec3 { 1.8 + float x, y, z; 1.9 +}; 1.10 + 1.11 +struct mesh { 1.12 + struct vec3 *vert, *norm, *tc; 1.13 + int num_verts; 1.14 +}; 1.15 + 1.16 +struct mesh *load_mesh(const char *fname); 1.17 +void free_mesh(struct mesh *m); 1.18 + 1.19 +void render_mesh(struct mesh *m); 1.20 + 1.21 +#endif /* MESH_H_ */