summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
Diffstat (limited to 'render.h')
-rw-r--r--render.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/render.h b/render.h
index 996ba37..2299a30 100644
--- a/render.h
+++ b/render.h
@@ -42,8 +42,8 @@ typedef struct {
Colour* t;
int* d;
int asp, n;
- int vp[4];
- Rect clip;
+ int vp[2];
+ int clip[4];
} Renderer;
int tri_os(
@@ -95,6 +95,12 @@ void ren_texts(
int y,
const char* t
);
+void ren_line(
+ Renderer* r,
+ Colour c,
+ const int* s,
+ const int* e
+);
/* Vertex format:
* x y z u v r g b
* All fixed point values with 9 bits of precision.