summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
Diffstat (limited to 'render.h')
-rw-r--r--render.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/render.h b/render.h
index e7d459f..a30331f 100644
--- a/render.h
+++ b/render.h
@@ -6,6 +6,25 @@
struct Map;
typedef struct {
+ int x, y;
+ int dx, dy;
+ int sx, sy;
+ int e;
+} Line;
+
+void init_line(
+ Line* l,
+ const int* f,
+ const int* t
+);
+void init_lerp(
+ Line* l,
+ int a, int b,
+ int x, int y
+);
+void step_line(Line* l);
+
+typedef struct {
unsigned char r, g, b, a;
} Colour;