reorganizing tileset handling
[vrlugburz] / src / tileset.h
diff --git a/src/tileset.h b/src/tileset.h
new file mode 100644 (file)
index 0000000..82d4ec3
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef TILESET_H_
+#define TILESET_H_
+
+#include "scenefile.h"
+
+struct tile;
+
+struct tileset {
+       const char *name;
+
+       struct scenefile scn;   /* scene file containing tile geometry */
+       struct tile *tiles;
+};
+
+int load_tileset(struct tileset *tset, const char *fname);
+void destroy_tileset(struct tileset *tset);
+
+struct tileset *get_tileset(const char *name);
+
+#endif /* TILESET_H_ */