labyrinth
annotate src/mesh.h @ 7:b557812c45db
generating the android (ant) project stuff from the makefile
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 04 May 2015 02:46:35 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef MESH_H_ |
nuclear@0 | 2 #define MESH_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 struct vec3 { |
nuclear@0 | 5 float x, y, z; |
nuclear@0 | 6 }; |
nuclear@0 | 7 |
nuclear@0 | 8 struct mesh { |
nuclear@0 | 9 struct vec3 *vert, *norm, *tc; |
nuclear@0 | 10 int num_verts; |
nuclear@0 | 11 }; |
nuclear@0 | 12 |
nuclear@0 | 13 struct mesh *load_mesh(const char *fname); |
nuclear@0 | 14 void free_mesh(struct mesh *m); |
nuclear@0 | 15 |
nuclear@0 | 16 void render_mesh(struct mesh *m); |
nuclear@0 | 17 |
nuclear@0 | 18 #endif /* MESH_H_ */ |