summaryrefslogtreecommitdiff
path: root/src/chunkedtiledmap.h
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-21 01:53:48 +0200
committerdavidovski <david@davidovski.xyz>2023-07-21 01:53:48 +0200
commit2dcefdb4565f96b808ed01ce1d96a802b8f73931 (patch)
tree4776446d3040fbf97b09ef4abda6be816d3c7c67 /src/chunkedtiledmap.h
parent1aceb70c5659677929bfbbd3f6480bacd8d75e35 (diff)
add chunked tiledmap io
Diffstat (limited to 'src/chunkedtiledmap.h')
-rw-r--r--src/chunkedtiledmap.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/chunkedtiledmap.h b/src/chunkedtiledmap.h
new file mode 100644
index 0000000..0d5c5d0
--- /dev/null
+++ b/src/chunkedtiledmap.h
@@ -0,0 +1,16 @@
+#include <raylib.h>
+#include "kdtree.h"
+
+const int i = 1;
+#define is_bigendian() ( (*(char*)&i) == 0 )
+
+typedef struct ChunkedTiledMap {
+ FILE * file;
+ int chunkWidth;
+ int chunkHeight;
+ int tileSize;
+ int atlasSize[2];
+ int tileCount;
+ Color * atlasData;
+ kdtree_t * chunkTree;
+} ChunkedTiledMap;