diff options
author | davidovski <david@davidovski.xyz> | 2023-07-21 01:53:48 +0200 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-21 01:53:48 +0200 |
commit | 2dcefdb4565f96b808ed01ce1d96a802b8f73931 (patch) | |
tree | 4776446d3040fbf97b09ef4abda6be816d3c7c67 /src/chunkedtiledmap.h | |
parent | 1aceb70c5659677929bfbbd3f6480bacd8d75e35 (diff) |
add chunked tiledmap io
Diffstat (limited to 'src/chunkedtiledmap.h')
-rw-r--r-- | src/chunkedtiledmap.h | 16 |
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; |