summaryrefslogtreecommitdiff
path: root/saedit/sae.h
diff options
context:
space:
mode:
Diffstat (limited to 'saedit/sae.h')
-rw-r--r--saedit/sae.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/saedit/sae.h b/saedit/sae.h
new file mode 100644
index 0000000..8f42637
--- /dev/null
+++ b/saedit/sae.h
@@ -0,0 +1,59 @@
+/*=======================================*\
+| ____ ____ |
+| / \ /\ | |
+| \____ / \ |____ |
+| \ /____\ | |
+| \____/prite / \nimation |____ditor |
+| |
+| Copyleft Vasily_Makarov 2011 |
+| |
+\*=======================================*/
+
+#ifndef SAE_H
+#define SAE_H
+
+typedef struct {
+ int index;
+ int offsetX;
+ int offsetY;
+ int delay;
+ GdkPixbuf *pixbuf;
+ cairo_surface_t *surface;
+} Frame;
+
+Frame *frame_new(int index, int offsetX, int offsetY, int delay);
+
+typedef struct {
+ XMLNode *node;
+ int offsetX;
+ int offsetY;
+ int width;
+ int height;
+ int spriteset_width;
+ int spriteset_height;
+ GdkPixbuf *spriteset;
+} Imageset;
+
+Imageset *imageset_new();
+
+typedef struct {
+ GList *imagesets;
+ GList *actions;
+ GList *animations;
+ GList *animation;
+ Imageset *imageset;
+ Frame *sprite;
+ guint anim_tag;
+ XMLNode *root;
+ GtkWidget *imagesets_combo_box;
+ GtkWidget *actions_combo_box;
+ GtkWidget *animations_combo_box;
+ GdkPixbuf *ground;
+ int offsetX;
+ int offsetY;
+} SAEInfo;
+
+SAEInfo *sae_info_new();
+GdkPixbuf *sae_info_ground_new();
+
+#endif