scenefile

view 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 source
1 #ifndef SCENE_H_
2 #define SCENE_H_
4 #include "mesh.h"
6 struct scenefile;
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 int scnfile_init(struct scenefile *scn);
13 void scnfile_destroy(struct scenefile *scn);
15 struct scenefile *scnfile_create(void);
16 void scnfile_free(struct scenefile *scn);
19 int scnfile_add_mesh(struct scenefile *scn, struct mesh *mesh);
22 int scnfile_load(struct scenefile *scn, const char *fname);
24 int scnfile_find_mesh(struct scenefile *scn, const char *fname);
25 struct mesh *scnfile_mesh(struct scenefile *scn, int idx);
26 int scnfile_count(struct scenefile *scn);
28 #ifdef __cplusplus
29 }
30 #endif
32 #endif /* SCENE_H_ */