summaryrefslogtreecommitdiff
path: root/src/tiledfile.h
blob: 929dabc7fa2534869cc612747c5c5d618f527a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <raylib.h>

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);