summaryrefslogtreecommitdiff
path: root/example/tsj2c.h
blob: df71e98badb4c61c53cc0117f27ed599035eb4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

typedef struct {
	double           duration;
	double           tileid;
} Tsj2cFrame;

typedef struct {
	unsigned int     id;
	const char       *type;
	double           probability;
	const int        numframes;
	const Tsj2cFrame *frames;
} Tsj2cTile;

typedef struct {
	const char       *name;
	const char       *path;
	unsigned int     imagewidth;
	unsigned int     imageheight;
	unsigned int     tilewidth;
	unsigned int     tileheight;
	unsigned int     margin;
	unsigned int     columns;
	unsigned int     tilecount;
	unsigned int     numtiles;
	const Tsj2cTile  *tiles;
} Tsj2cSet;