scenefile
annotate src/scene.h @ 2:c15992cedec9
scene
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 15 Jan 2012 08:32:19 +0200 |
parents | |
children | b30f83409769 |
rev | line source |
---|---|
nuclear@2 | 1 #ifndef SCENE_H_ |
nuclear@2 | 2 #define SCENE_H_ |
nuclear@2 | 3 |
nuclear@2 | 4 #include "mesh.h" |
nuclear@2 | 5 |
nuclear@2 | 6 struct scenefile; |
nuclear@2 | 7 |
nuclear@2 | 8 #ifdef __cplusplus |
nuclear@2 | 9 extern "C" { |
nuclear@2 | 10 #endif |
nuclear@2 | 11 |
nuclear@2 | 12 int scnfile_init(struct scenefile *scn); |
nuclear@2 | 13 void scnfile_destroy(struct scenefile *scn); |
nuclear@2 | 14 |
nuclear@2 | 15 struct scenefile *scnfile_create(void); |
nuclear@2 | 16 void scnfile_free(struct scenefile *scn); |
nuclear@2 | 17 |
nuclear@2 | 18 |
nuclear@2 | 19 int scnfile_add_mesh(struct scenefile *scn, struct mesh *mesh); |
nuclear@2 | 20 |
nuclear@2 | 21 |
nuclear@2 | 22 int scnfile_load(struct scenefile *scn, const char *fname); |
nuclear@2 | 23 |
nuclear@2 | 24 int scnfile_find_mesh(struct scenefile *scn, const char *fname); |
nuclear@2 | 25 struct mesh *scnfile_mesh(struct scenefile *scn, int idx); |
nuclear@2 | 26 int scnfile_count(struct scenefile *scn); |
nuclear@2 | 27 |
nuclear@2 | 28 #ifdef __cplusplus |
nuclear@2 | 29 } |
nuclear@2 | 30 #endif |
nuclear@2 | 31 |
nuclear@2 | 32 #endif /* SCENE_H_ */ |