diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-26 17:11:56 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-26 17:11:56 +0500 |
| commit | 2d7f199341bc2732cc2a238b6caf57424fcc35ac (patch) | |
| tree | 884e01a4a4032b1e9637028968df8bbe54bebb1a /src/editor.h | |
| parent | 9f5b2b1ebd4bb46163b7f00912db0578aca57d25 (diff) | |
feat: draw tiles
Diffstat (limited to 'src/editor.h')
| -rw-r--r-- | src/editor.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/editor.h b/src/editor.h index 02966f1..5e51682 100644 --- a/src/editor.h +++ b/src/editor.h @@ -17,12 +17,18 @@ typedef struct { typedef struct { XdTileData data; Texture2D texture; +} EditorTileData; + +typedef struct { + EditorTileData *tile; + Vector2 position; } EditorTile; typedef struct { - int tileCacheSize; - EditorTile *tiles[200]; - Texture2D *textureCache[]; + int tileDataSize; + int tilesCount; + EditorTileData *tileData[200]; + EditorTile *tiles[]; } EditorCache; typedef struct { @@ -30,8 +36,8 @@ typedef struct { EditorCreateBlockState *createBlockState; Rectangle panelView; Vector2 panelScroll; + EditorTileData *selectedTile; EditorCache cache; - EditorTile *selectedTile; } EditorState; typedef struct { |
