From 951f6115c16c3ab482c19705344295c90af1625b Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 27 Jul 2024 11:15:21 +1000 Subject: clipping and viewport improvements. --- render.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'render.h') 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. -- cgit v1.2.3-54-g00ecf