labyrinth

view src/objfile.h @ 2:e3b9707504df

increased the field of view
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 27 Apr 2015 05:37:17 +0300
parents
children
line source
1 #ifndef OBJFILE_H_
2 #define OBJFILE_H_
4 struct objfile;
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 struct objfile *objf_load(const char *fname);
11 void objf_free(struct objfile *obj);
13 int objf_vertex_count(struct objfile *obj);
14 int objf_face_count(struct objfile *obj);
16 float *objf_vertices(struct objfile *obj);
17 float *objf_normals(struct objfile *obj);
18 float *objf_texcoords(struct objfile *obj);
20 float *objf_vertex(struct objfile *obj, int idx);
21 float *objf_normal(struct objfile *obj, int idx);
22 float *objf_texcoord(struct objfile *obj, int idx);
25 #ifdef __cplusplus
26 }
27 #endif
29 #endif /* OBJFILE_H_ */