summaryrefslogtreecommitdiff
path: root/src/tiledfile.h
blob: c9bd573574d79ef6a0bb37891588c2c091e1035e (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);