projects
/
cyberay
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4a518378f748f3885d08966edfe803ebf2bfe328
[cyberay]
/
src
/
mesh.h
1
#ifndef MESH_H_
2
#define MESH_H_
3
4
#include <GL/gl.h>
5
#include <cgmath/cgmath.h>
6
#include "geom.h"
7
8
struct mesh {
9
struct triangle *faces;
10
int num_faces;
11
12
struct aabox aabb;
13
14
struct material mtl;
15
};
16
17
int load_mesh(struct mesh *m, const char *fname);
18
void destroy_mesh(struct mesh *m);
19
void draw_mesh(struct mesh *m);
20
21
#endif /* MESH_H_ */