labyrinth

annotate src/objfile.h @ 1:d46f0947a96d

added helpful comment
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 06 Feb 2015 00:34:04 +0200
parents
children
rev   line source
nuclear@0 1 #ifndef OBJFILE_H_
nuclear@0 2 #define OBJFILE_H_
nuclear@0 3
nuclear@0 4 struct objfile;
nuclear@0 5
nuclear@0 6 #ifdef __cplusplus
nuclear@0 7 extern "C" {
nuclear@0 8 #endif
nuclear@0 9
nuclear@0 10 struct objfile *objf_load(const char *fname);
nuclear@0 11 void objf_free(struct objfile *obj);
nuclear@0 12
nuclear@0 13 int objf_vertex_count(struct objfile *obj);
nuclear@0 14 int objf_face_count(struct objfile *obj);
nuclear@0 15
nuclear@0 16 float *objf_vertices(struct objfile *obj);
nuclear@0 17 float *objf_normals(struct objfile *obj);
nuclear@0 18 float *objf_texcoords(struct objfile *obj);
nuclear@0 19
nuclear@0 20 float *objf_vertex(struct objfile *obj, int idx);
nuclear@0 21 float *objf_normal(struct objfile *obj, int idx);
nuclear@0 22 float *objf_texcoord(struct objfile *obj, int idx);
nuclear@0 23
nuclear@0 24
nuclear@0 25 #ifdef __cplusplus
nuclear@0 26 }
nuclear@0 27 #endif
nuclear@0 28
nuclear@0 29 #endif /* OBJFILE_H_ */