From 1aceb70c5659677929bfbbd3f6480bacd8d75e35 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 00:21:17 +0200 Subject: add kdtree --- src/tiledmap.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/tiledmap.h (limited to 'src/tiledmap.h') diff --git a/src/tiledmap.h b/src/tiledmap.h new file mode 100644 index 0000000..fb9c789 --- /dev/null +++ b/src/tiledmap.h @@ -0,0 +1,23 @@ +#include + +typedef struct TiledMap { + int width; + int height; + char * tilelayout; + int tileSize; + int atlasSize[2]; + int tileCount; + Color * atlasData; +} TiledMap; + +void textureFromPixels(Texture2D *texOut, Color *pixels, int width, int height); + +void setTiledMapTile(TiledMap tiledMap, int pos[2], char tile); + +char getTiledMapTile(TiledMap tiledMap, int pos[2]); + +TiledMap loadTiledMap(char * filename); + +void saveTiledMap(char * filename, TiledMap tiledMap); + +TiledMap newTiledMap(Image atlas, int tileSize, int width, int height); -- cgit v1.2.3