LibTMJ 2.0.0
A library for loading JSON Tiled maps
Loading...
Searching...
No Matches
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.
Tileset * tmj_tileset_loadf (const char *path, bool check_extension)
 Loads the Tiled tileset at the given path.
Tileset * tmj_tileset_load (const char *tileset)
 Loads the Tiled tileset from the given JSON object string.
void tmj_tileset_free (Tileset *tileset)
 Frees the memory associated with the given tileset.

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 585 of file tileset.c.

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