scenefile
diff src/scene.h @ 2:c15992cedec9
scene
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 15 Jan 2012 08:32:19 +0200 |
parents | |
children | b30f83409769 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/scene.h Sun Jan 15 08:32:19 2012 +0200 1.3 @@ -0,0 +1,32 @@ 1.4 +#ifndef SCENE_H_ 1.5 +#define SCENE_H_ 1.6 + 1.7 +#include "mesh.h" 1.8 + 1.9 +struct scenefile; 1.10 + 1.11 +#ifdef __cplusplus 1.12 +extern "C" { 1.13 +#endif 1.14 + 1.15 +int scnfile_init(struct scenefile *scn); 1.16 +void scnfile_destroy(struct scenefile *scn); 1.17 + 1.18 +struct scenefile *scnfile_create(void); 1.19 +void scnfile_free(struct scenefile *scn); 1.20 + 1.21 + 1.22 +int scnfile_add_mesh(struct scenefile *scn, struct mesh *mesh); 1.23 + 1.24 + 1.25 +int scnfile_load(struct scenefile *scn, const char *fname); 1.26 + 1.27 +int scnfile_find_mesh(struct scenefile *scn, const char *fname); 1.28 +struct mesh *scnfile_mesh(struct scenefile *scn, int idx); 1.29 +int scnfile_count(struct scenefile *scn); 1.30 + 1.31 +#ifdef __cplusplus 1.32 +} 1.33 +#endif 1.34 + 1.35 +#endif /* SCENE_H_ */