eobish

view src/tileset.h @ 5:0baf4e98315e

depth cueing
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 02:32:01 +0200
parents ce0548d24918
children
line source
1 #ifndef TILESET_H_
2 #define TILESET_H_
4 #include "image.h"
6 struct tile {
7 char *name;
8 struct image img;
9 int orig_x, orig_y;
10 };
12 struct tileset {
13 struct tile *tile;
14 int num_tiles;
16 struct color pal[256];
17 int pal_size;
18 };
20 int load_tileset(struct tileset *ts, const char *fname);
21 void destroy_tileset(struct tileset *ts);
23 struct tile *get_tile(struct tileset *ts, const char *name);
24 struct tile *get_tilef(struct tileset *ts, const char *fmt, ...);
26 #endif /* TILESET_H_ */