diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-11 21:40:53 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-11 21:40:53 +0000 |
commit | 139a46c56af04a0b8c2f06769ac77078f5581395 (patch) | |
tree | 25b0ba14e35d62b061975e97b5445529cace0137 /graphics.h | |
parent | d3b48593b0fee862ea60687336031fd9374ab667 (diff) | |
download | libgraphics-139a46c56af04a0b8c2f06769ac77078f5581395.tar.gz libgraphics-139a46c56af04a0b8c2f06769ac77078f5581395.tar.bz2 libgraphics-139a46c56af04a0b8c2f06769ac77078f5581395.zip |
fix FPINVAL error. knob for fb clear color. general improvements.
Diffstat (limited to 'graphics.h')
-rw-r--r-- | graphics.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |