From 02c06cfbc711c01d22bb0c52f8440f7060c10916 Mon Sep 17 00:00:00 2001 From: rodri Date: Tue, 26 Mar 2024 10:42:23 +0000 Subject: pass a Viewport in the Renderjob instead of a fb. do the frame buffer clearing and swapping as part of the rendering process, not within shootcamera. --- graphics.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index fdd1463..f109be3 100644 --- a/graphics.h +++ b/graphics.h @@ -176,7 +176,7 @@ struct Renderer struct Renderjob { - Framebuf *fb; + Viewport *v; Scene *scene; Shadertab *shaders; Channel *donec; @@ -215,6 +215,7 @@ struct Viewport void (*draw)(Viewport*, Image*); void (*memdraw)(Viewport*, Memimage*); + Framebuf *(*getfb)(Viewport*); }; struct Camera -- cgit v1.2.3