diff options
author | davidovski <david@davidovski.xyz> | 2023-07-11 21:37:38 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-11 21:37:38 +0100 |
commit | ce892407370be42479bb05e9a2faa60a297c9886 (patch) | |
tree | d28da24f8f9978568cdcf2fd393e8c1bd2a7d74a /src/tiled.h | |
parent | ebbb6c8b0302589626a594399ec04e3c4555d5f6 (diff) |
make render changes on texture rather than image
Diffstat (limited to 'src/tiled.h')
-rw-r--r-- | src/tiled.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tiled.h b/src/tiled.h index e1f1c79..735c3a9 100644 --- a/src/tiled.h +++ b/src/tiled.h @@ -14,8 +14,8 @@ typedef struct Tiled { int mapSize[2]; Texture2D atlasTexture; - Texture2D tilemapTexture; + RenderTexture2D tilemapTexture; RenderTexture2D targetTexture; Shader shader; @@ -36,3 +36,5 @@ Vector2 translateTiledScreenPosition(Tiled tiled, Vector2 tiledPos); Tiled initTiled(TiledMap tiledMap); void drawTiled(Tiled *tiled); void unloadTiled(Tiled *tiled); +void redrawTiledMap(Tiled tiled); + |