LoadTileset.c File Reference

Tileset file loader (.tsx / .png) created with Tiled editor http://www.mapeditor.org. More...

Functions

TLN_Tileset TLN_LoadTileset (const char *filename)
 Loads a tileset from a Tiled .tsx file. More...
 

Detailed Description

Tileset file loader (.tsx / .png) created with Tiled editor http://www.mapeditor.org.

Function Documentation

TLN_Tileset TLN_LoadTileset ( const char *  filename)

Loads a tileset from a Tiled .tsx file.

Parameters
filenameTSX file to load
Returns
Reference to the newly loaded tileset or NULL if error
Remarks
An associated palette is also created, it can be obtained calling TLN_GetTilesetPalette()