maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RETROTILE Struct Reference

A struct representing a tilemap. More...

#include <retrotil.h>

Data Fields

char name [RETROTILE_NAME_SZ_MAX]
 
uint32_t sz
 Size of the tilemap in bytes (including this struct header).
 
uint32_t layers_count
 Number of tile layers in this tilemap.
 
size_t tileset_fgid
 First GID in the accompanying tileset.
 
size_t tiles_h
 Height of all layers of the tilemap in tiles.
 
size_t tiles_w
 Width of all layers of the tilemap in tiles.
 
float tile_scale
 Amount by which to scale tiles (convenience property).
 

Detailed Description

A struct representing a tilemap.

Warning
Only single-tileset tilemaps are supported!
Only tile layers are supported!

Field Documentation

◆ tile_scale

float RETROTILE::tile_scale

Amount by which to scale tiles (convenience property).

Todo
Replace this with a hashtable of custom properties.

The documentation for this struct was generated from the following file: