diff options
author | davidovski <david@davidovski.xyz> | 2023-07-23 15:30:42 +0200 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-23 15:30:42 +0200 |
commit | 0d78ec0e53d9824a029840e74bf0721ed2187e6a (patch) | |
tree | 74781baff855e3f3760730c9897e932994f3a8a4 /src/tiled.h | |
parent | 5ec62c0a2a0357a79f92b8bb37f67272e7f910ff (diff) |
add chunk caching
Diffstat (limited to 'src/tiled.h')
-rw-r--r-- | src/tiled.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tiled.h b/src/tiled.h index 11518e7..c3d0950 100644 --- a/src/tiled.h +++ b/src/tiled.h @@ -1,12 +1,12 @@ #include <raylib.h> -#include "chunkedtiledmap.h" +#include "tiledmap.h" #define SCREEN_W 1280 #define SCREEN_H 720 typedef struct Tiled { - ChunkedTiledMap tiledMap; + TiledMap tiledMap; float zoom; Vector2 offset; @@ -27,14 +27,14 @@ typedef struct Tiled { int atlasTextureLoc; int tilemapTextureLoc; - } Tiled; void updateTiledCamera(Tiled *tiled); Vector2 translateTiledPosition(Tiled tiled, Vector2 screenPos); Vector2 translateTiledScreenPosition(Tiled tiled, Vector2 tiledPos); -Tiled initTiled(ChunkedTiledMap tiledMap); +Tiled initTiled(TiledMap tiledMap); void drawTiled(Tiled *tiled); void unloadTiled(Tiled *tiled); void redrawTiledMap(Tiled tiled); +void redrawTile(Tiled tiled, int x, int y); |