From 139a46c56af04a0b8c2f06769ac77078f5581395 Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 11 Aug 2024 21:40:53 +0000 Subject: fix FPINVAL error. knob for fb clear color. general improvements. --- graphics.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index c9a7f67..e08e233 100644 --- a/graphics.h +++ b/graphics.h @@ -293,7 +293,7 @@ struct Framebufctl void (*upscalememdraw)(Framebufctl*, Memimage*, Point, Point); void (*drawnormals)(Framebufctl*, Image*); void (*swap)(Framebufctl*); - void (*reset)(Framebufctl*); + void (*reset)(Framebufctl*, ulong); Framebuf *(*getfb)(Framebufctl*); Framebuf *(*getbb)(Framebufctl*); }; @@ -325,6 +325,7 @@ struct Camera } clip; Matrix3 proj; /* VCS to clip space xform */ Projection projtype; + int clearcolor; int cullmode; int enableblend; int enabledepth; @@ -418,6 +419,7 @@ Memimage *dupmemimage(Memimage*); /* color */ Color srgb2linear(Color); Color linear2srgb(Color); +ulong rgba2xrgb(ulong); /* shadeop */ double sign(double); -- cgit v1.2.3