aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index ce1cd64..8e42349 100644
--- a/dat.h
+++ b/dat.h
@@ -1,5 +1,18 @@
+/* palette colors */
+enum {
+ PCBlack,
+ PCWhite,
+ NCOLOR
+};
+
+enum {
+ MAXZOOM = 8
+};
+
typedef struct Layer Layer;
typedef struct Canvas Canvas;
+typedef struct HUD HUD;
+typedef struct HUDWidget HUDWidget;
struct Layer
{
@@ -17,3 +30,17 @@ struct Canvas
Layer layers;
Layer *curlayer;
};
+
+struct HUD
+{
+ Point2 p;
+ HUDWidget *widgets;
+};
+
+struct HUDWidget
+{
+ Point2 p;
+ char *fmt;
+ va_arg va;
+ HUDWidget *next;
+};