summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-11 21:40:53 +0000
committerrodri <rgl@antares-labs.eu>2024-08-11 21:40:53 +0000
commit139a46c56af04a0b8c2f06769ac77078f5581395 (patch)
tree25b0ba14e35d62b061975e97b5445529cace0137 /graphics.h
parentd3b48593b0fee862ea60687336031fd9374ab667 (diff)
downloadlibgraphics-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.h4
1 files changed, 3 insertions, 1 deletions
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);