started the level loading routines
[cyberay] / src / mesh.h
diff --git a/src/mesh.h b/src/mesh.h
new file mode 100644 (file)
index 0000000..b97f9cd
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef MESH_H_
+#define MESH_H_
+
+#include <GL/gl.h>
+#include <cgmath/cgmath.h>
+#include "geom.h"
+
+struct mesh {
+       struct triangle *faces;
+       int num_faces;
+
+       struct aabox aabb;
+
+       struct material mtl;
+};
+
+int load_mesh(struct mesh *m, const char *fname);
+void draw_mesh(struct mesh *m);
+
+#endif /* MESH_H_ */