summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-27 15:44:45 +1000
committerquou <quou@disroot.org>2024-07-27 15:49:46 +1000
commit4cacaad9e392bf5fe63a90019411f21a72db0e7a (patch)
tree34e3cd4d576c8cbafca6f8f4d5ef381dece3a325 /render.h
parentb8b18d982af8cc8e10372f90c6c7bff4f0b58f69 (diff)
WIP raycasting
Diffstat (limited to 'render.h')
-rw-r--r--render.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/render.h b/render.h
index 2299a30..9ce3015 100644
--- a/render.h
+++ b/render.h
@@ -3,6 +3,8 @@
#include "rect.h"
+struct Map;
+
typedef struct {
unsigned char r, g, b, a;
} Colour;
@@ -125,4 +127,12 @@ void ren_mesh(
const Texture* tex
);
+void ren_map(
+ Renderer* r,
+ const struct Map* map,
+ const int* pos,
+ const int* dir,
+ const int* left
+);
+
#endif