labyrinth
view src/objfile.h @ 5:c8826e5ebec1
- changed every data loading function to return dummy objects instead of failing
- fixed mistake in AndroidManifest.xml
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 01 May 2015 05:58:41 +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_ */