missing corner pieces for open rooms
[vrlugburz] / src / tileset.h
1 #ifndef TILESET_H_
2 #define TILESET_H_
3
4 #include "scenefile.h"
5
6 #define DEF_TILE_SIZE   3.0f
7
8 struct tile;
9
10 struct tileset {
11         char *name, *fname;
12         float tile_size;
13
14         struct scenefile scn;   /* scene file containing tile geometry */
15         struct tile *tiles;
16
17         struct tileset *next;
18 };
19
20 int load_tileset(struct tileset *tset, const char *fname);
21 void destroy_tileset(struct tileset *tset);
22
23 struct tileset *get_tileset(const char *fname);
24 void free_all_tilesets(void);
25
26 struct tile *get_tile(struct tileset *tset, int ttype);
27
28 int tile_type(const char *tstr);
29
30 #endif  /* TILESET_H_ */