labyrinth
diff src/objfile.h @ 0:8ba79034e8a6
labyrinth example initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 15 Jan 2015 14:59:38 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/objfile.h Thu Jan 15 14:59:38 2015 +0200 1.3 @@ -0,0 +1,29 @@ 1.4 +#ifndef OBJFILE_H_ 1.5 +#define OBJFILE_H_ 1.6 + 1.7 +struct objfile; 1.8 + 1.9 +#ifdef __cplusplus 1.10 +extern "C" { 1.11 +#endif 1.12 + 1.13 +struct objfile *objf_load(const char *fname); 1.14 +void objf_free(struct objfile *obj); 1.15 + 1.16 +int objf_vertex_count(struct objfile *obj); 1.17 +int objf_face_count(struct objfile *obj); 1.18 + 1.19 +float *objf_vertices(struct objfile *obj); 1.20 +float *objf_normals(struct objfile *obj); 1.21 +float *objf_texcoords(struct objfile *obj); 1.22 + 1.23 +float *objf_vertex(struct objfile *obj, int idx); 1.24 +float *objf_normal(struct objfile *obj, int idx); 1.25 +float *objf_texcoord(struct objfile *obj, int idx); 1.26 + 1.27 + 1.28 +#ifdef __cplusplus 1.29 +} 1.30 +#endif 1.31 + 1.32 +#endif /* OBJFILE_H_ */