summaryrefslogtreecommitdiff
path: root/src/chunkedtiledmap.h
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-23 15:30:42 +0200
committerdavidovski <david@davidovski.xyz>2023-07-23 15:30:42 +0200
commit0d78ec0e53d9824a029840e74bf0721ed2187e6a (patch)
tree74781baff855e3f3760730c9897e932994f3a8a4 /src/chunkedtiledmap.h
parent5ec62c0a2a0357a79f92b8bb37f67272e7f910ff (diff)
add chunk caching
Diffstat (limited to 'src/chunkedtiledmap.h')
-rw-r--r--src/chunkedtiledmap.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/chunkedtiledmap.h b/src/chunkedtiledmap.h
deleted file mode 100644
index 8bc2aaa..0000000
--- a/src/chunkedtiledmap.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <raylib.h>
-#include "kdtree.h"
-
-typedef struct ChunkedTiledMap {
- FILE * file;
- int chunkWidth;
- int chunkHeight;
- int tileSize;
- int atlasSize[2];
- int tileCount;
- Color * atlasData;
- kdtree_t * chunkTree;
-} ChunkedTiledMap;
-
-void textureFromPixels(Texture2D *texOut, Color *pixels, int width, int height);
-ChunkedTiledMap openTiledMap(char * filename);
-char * loadChunk(ChunkedTiledMap tiledMap, int x, int y);
-char getChunkedTile(ChunkedTiledMap tiledMap, int x, int y);
-char setChunkedTile(ChunkedTiledMap * tiledMap, int x, int y, char value);
-char * appendChunk(ChunkedTiledMap * tiledMap, int x, int y, char * chunk);
-void writeTiledMapHeader(ChunkedTiledMap tiledMap);
-ChunkedTiledMap openNewTiledMap(char * filename, Image atlas, int tileSize, int chunkWidth, int chunkHeight, int width, int height);
-void closeTiledMap(ChunkedTiledMap tiledMap);
-