summaryrefslogtreecommitdiff
path: root/example/tsj2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'example/tsj2c.h')
-rw-r--r--example/tsj2c.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/example/tsj2c.h b/example/tsj2c.h
new file mode 100644
index 0000000..df71e98
--- /dev/null
+++ b/example/tsj2c.h
@@ -0,0 +1,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;