aboutsummaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-03-26 10:42:23 +0000
committerrodri <rgl@antares-labs.eu>2024-03-26 10:42:23 +0000
commit02c06cfbc711c01d22bb0c52f8440f7060c10916 (patch)
treef5272530117eb133813c05949ebc8919544eb4f2 /graphics.h
parent0874435504c0816c0e5f11a2e852507626fe185e (diff)
downloadlibgraphics-02c06cfbc711c01d22bb0c52f8440f7060c10916.tar.gz
libgraphics-02c06cfbc711c01d22bb0c52f8440f7060c10916.tar.bz2
libgraphics-02c06cfbc711c01d22bb0c52f8440f7060c10916.zip
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.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h3
1 files changed, 2 insertions, 1 deletions
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