From 04d50b8bbe324fdb7a8a1e724fbc59c4050862f0 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 13 Jul 2024 10:23:52 +0000 Subject: fix the geometry glitches when moving things around. it's possible for interactive programs to keep updating the geometry of the scene during rendering, which caused primitives to look deformed or shattered in the final image. to avoid this we take a snapshot of the current state of things (scene and camera), and render based on that copy. --- internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 6e66229..361b013 100644 --- a/internal.h +++ b/internal.h @@ -51,7 +51,7 @@ void delvattrs(Vertex*); void fprintvattrs(int, Vertex*); /* clip */ -int clipprimitive(Primitive*); +int clipprimitive(Primitive*, Primitive*); int rectclipline(Rectangle, Point*, Point*); /* util */ -- cgit v1.2.3