LibTMJ  1.0.0
A library for loading JSON Tiled maps
Functions
tileset.c File Reference
#include <string.h>
#include <jansson.h>
#include "log.h"
#include "map.h"
#include "tmj.h"
Include dependency graph for tileset.c:

Go to the source code of this file.

Functions

int unpack_tileset (json_t *tileset, Tileset *ret)
 
void tilesets_free (Tileset *tilesets, size_t tileset_count)
 Helper function for freeing tilesets embedded in maps. More...
 
Tilesettmj_tileset_loadf (const char *path, bool check_extension)
 Loads the Tiled tileset at the given path. More...
 
Tilesettmj_tileset_load (const char *tileset)
 Loads the Tiled tileset from the given JSON object string. More...
 
void tmj_tileset_free (Tileset *tileset)
 Frees the memory associated with the given tileset. More...
 

Function Documentation

◆ unpack_tileset()

int unpack_tileset ( json_t *  tileset,
Tileset ret 
)

Definition at line 13 of file tileset.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tilesets_free()

void tilesets_free ( Tileset tilesets,
size_t  tileset_count 
)

Helper function for freeing tilesets embedded in maps.

Definition at line 550 of file tileset.c.

Here is the call graph for this function:
Here is the caller graph for this function: