diff options
Diffstat (limited to 'src/tiledfile.h')
-rw-r--r-- | src/tiledfile.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/tiledfile.h b/src/tiledfile.h index 8c47234..c9bd573 100644 --- a/src/tiledfile.h +++ b/src/tiledfile.h @@ -1,3 +1,16 @@ #include <raylib.h> -int loadTileMap(char * filename, Texture2D * tilemap, Texture2D * atlas, int * atlasSize); +typedef struct TiledMap { + int width; + int height; + char * tilelayout; + int tilesize; + int atlasSize[2]; + Color * atlasData; +} TiledMap; + +void textureFromPixels(Texture2D *texOut, Color *pixels, int width, int height); + +void renderTilemapTexture(Texture2D *texOut, TiledMap tiledMap); + +TiledMap loadTiledMap(char * filename); |