summaryrefslogtreecommitdiff
path: root/src/chunkedtiledmap.h
diff options
context:
space:
mode:
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;