summaryrefslogtreecommitdiffstats
path: root/src/tileset.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-24 10:07:47 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-24 10:07:47 (EDT)
commit103b5c0eea22b6570ada8ae9200ab069466bd1b3 (patch)
tree6558a9d179927e4c68385819bb1cefc8e127344e /src/tileset.h
parentf1de5e0a816846e82aabc46639f1b59dec09638b (diff)
downloaddodge-balls-103b5c0eea22b6570ada8ae9200ab069466bd1b3.zip
dodge-balls-103b5c0eea22b6570ada8ae9200ab069466bd1b3.tar.gz
dodge-balls-103b5c0eea22b6570ada8ae9200ab069466bd1b3.tar.bz2
map: Copy the tileset texture to the layer texture
Not the layer texture to the layer texture. That's just stupid.
Diffstat (limited to 'src/tileset.h')
-rw-r--r--src/tileset.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tileset.h b/src/tileset.h
index 8d660b7..d350765 100644
--- a/src/tileset.h
+++ b/src/tileset.h
@@ -20,6 +20,8 @@
#ifndef DB_TILESET_H_
#define DB_TILESET_H_
+#include <SDL.h>
+
struct db_tileset;
struct db_tileset *db_tileset_new(const char *game_id, const char *file,
@@ -31,7 +33,7 @@ int db_tileset_columns (struct db_tileset *tileset) __attribute__((__pure__));
int db_tileset_firstgid (struct db_tileset *tileset) __attribute__((__pure__));
struct db_tileset *db_tileset_next(struct db_tileset *tileset)
__attribute__((__pure__));
-int db_tileset_create_texture(struct db_tileset *tileset,
+SDL_Texture *db_tileset_texture(struct db_tileset *tileset,
SDL_Renderer *renderer);
#endif /* DB_TILESET_H_ */