labyrinth

annotate src/mesh.h @ 1:d46f0947a96d

added helpful comment
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 06 Feb 2015 00:34:04 +0200
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_ */