Function TCOD_tileset_load¶
Defined in File tileset.h
Function Documentation¶
-
TCOD_Tileset *TCOD_tileset_load(const char *filename, int columns, int rows, int n, const int *charmap)
Load a PNG font as a tilesheet and return a TCOD_Tileset.
filename
is the path to a PNG file.columns
androws
are the shape of the tileset in the image. The tile size will be derived from these parameters and the size of the image.charmap[n]
is an array of which codepoints to assign to which tiles. Tiles are assigned in row-major order.TCOD_CHARMAP_CP437
orTCOD_CHARMAP_TCOD
could be used here.New in version 1.19.