241 unsigned char wangid[8];
570 uint32_t*
tmj_decode_layer(
const char* data,
const char* encoding,
const char* compression,
size_t* size);
Map * tmj_map_load(const char *map, const char *name)
Loads the Tiled map from the given JSON object string.
uint32_t * tmj_decode_layer(const char *data, const char *encoding, const char *compression, size_t *size)
Decodes layer data from a Tiled map layer.
Map * tmj_map_loadf(const char *path, bool check_extension)
Loads the Tiled map from the file at the given path.
const char *const TMJ_VERSION
The full library version.
enum TMJ_LOG_PRIORITY tmj_log_priority
void tmj_log_regcb(bool debug, void(*callback)(tmj_log_priority, const char *))
Registers a callback function to handle logging events.
void tmj_map_free(Map *map)
Frees the memory associated with the given map.
const unsigned int TMJ_VERSION_MINOR
The library minor version.
void tmj_tileset_free(Tileset *tileset)
Frees the memory associated with the given tileset.
Tileset * tmj_tileset_load(const char *tileset)
Loads the Tiled tileset from the given JSON object string.
Tileset * tmj_tileset_loadf(const char *path, bool check_extension)
Loads the Tiled tileset at the given path.
const unsigned int TMJ_VERSION_PATCH
The library patch version.
const unsigned int TMJ_VERSION_MAJOR
**
https://doc.mapeditor.org/en/stable/reference/json-map-format/#chunk
https://doc.mapeditor.org/en/stable/reference/json-map-format/#frame
https://doc.mapeditor.org/en/stable/reference/json-map-format/#grid
https://doc.mapeditor.org/en/stable/reference/json-map-format/#layer
https://doc.mapeditor.org/en/stable/reference/json-map-format/#json-map-format
json_t * root
The root object returned by jansson after parsing.
https://doc.mapeditor.org/en/stable/reference/json-map-format/#object-template
https://doc.mapeditor.org/en/stable/reference/json-map-format/#object
size_t polygon_point_count
size_t polyline_point_count
https://doc.mapeditor.org/en/stable/reference/json-map-format/#point
https://doc.mapeditor.org/en/stable/reference/json-map-format/#property
https://doc.mapeditor.org/en/stable/reference/json-map-format/#terrain
https://doc.mapeditor.org/en/stable/reference/json-map-format/#text
https://doc.mapeditor.org/en/stable/reference/json-map-format/#tile-offset
https://doc.mapeditor.org/en/stable/reference/json-map-format/#tile-definition
https://doc.mapeditor.org/en/stable/reference/json-map-format/#tileset
json_t * root
The root object returned by jansson after parsing.
Transformations * transformations
https://doc.mapeditor.org/en/stable/reference/json-map-format/#wang-color
https://doc.mapeditor.org/en/stable/reference/json-map-format/#wang-set
https://doc.mapeditor.org/en/stable/reference/json-map-format/#wang-tile
struct Tileset Tileset
https://doc.mapeditor.org/en/stable/reference/json-map-format/#tileset
struct Layer Layer
https://doc.mapeditor.org/en/stable/reference/json-map-format/#layer
struct Property Property
https://doc.mapeditor.org/en/stable/reference/json-map-format/#property
struct Tile Tile
https://doc.mapeditor.org/en/stable/reference/json-map-format/#tile-definition
struct Text Text
https://doc.mapeditor.org/en/stable/reference/json-map-format/#text
struct Point Point
https://doc.mapeditor.org/en/stable/reference/json-map-format/#point
struct Transformations Transformations
https://doc.mapeditor.org/en/stable/reference/json-map-format/#transformations
struct WangTile WangTile
https://doc.mapeditor.org/en/stable/reference/json-map-format/#wang-tile
struct ObjectTemplate ObjectTemplate
https://doc.mapeditor.org/en/stable/reference/json-map-format/#object-template
struct Map Map
https://doc.mapeditor.org/en/stable/reference/json-map-format/#json-map-format
struct Frame Frame
https://doc.mapeditor.org/en/stable/reference/json-map-format/#frame
struct Grid Grid
https://doc.mapeditor.org/en/stable/reference/json-map-format/#grid
struct WangSet WangSet
https://doc.mapeditor.org/en/stable/reference/json-map-format/#wang-set
struct Object Object
https://doc.mapeditor.org/en/stable/reference/json-map-format/#object
struct TileOffset TileOffset
https://doc.mapeditor.org/en/stable/reference/json-map-format/#tile-offset
struct Chunk Chunk
https://doc.mapeditor.org/en/stable/reference/json-map-format/#chunk
struct Terrain Terrain
https://doc.mapeditor.org/en/stable/reference/json-map-format/#terrain
struct WangColor WangColor
https://doc.mapeditor.org/en/stable/reference/json-map-format/#wang-color