projects
/
cyberay
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
started the level loading routines
[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 draw_mesh(struct mesh *m);
19
20
#endif /* MESH_H_ */