coeng

annotate src/objfile.h @ 8:8cce82794f90

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