summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-13 14:29:57 +0000
committerrodri <rgl@antares-labs.eu>2024-09-13 14:29:57 +0000
commiteeda874d7c96703668d8ea9da2a4d22299ae4e5f (patch)
tree51a7f039ce1ecb651ca0f8d1e6eef6bab2a110a0 /graphics.h
parentf89e4e8e5ddcbf7de6aa8310f11204e5e019f7cb (diff)
downloadlibgraphics-eeda874d7c96703668d8ea9da2a4d22299ae4e5f.tar.gz
libgraphics-eeda874d7c96703668d8ea9da2a4d22299ae4e5f.tar.bz2
libgraphics-eeda874d7c96703668d8ea9da2a4d22299ae4e5f.zip
turn the camera rendering options into a bitmap.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/graphics.h b/graphics.h
index 39af008..bc18069 100644
--- a/graphics.h
+++ b/graphics.h
@@ -13,6 +13,11 @@ enum {
CullFront,
CullBack,
+ /* render options */
+ ROBlend = 0x01,
+ RODepth = 0x02,
+ ROAbuff = 0x04,
+
/* primitive types */
PPoint = 0,
PLine,
@@ -27,7 +32,7 @@ enum {
COLOR32 = 0, /* RGBA32 */
FLOAT32, /* F32 */
- /* texture formats */
+ /* texture types */
RAWTexture = 0, /* unmanaged */
sRGBTexture,
@@ -351,9 +356,7 @@ struct Camera
Matrix3 proj; /* VCS to clip space xform */
Projection projtype;
int cullmode;
- int enableblend;
- int enabledepth;
- int enableAbuff;
+ uint rendopts;
struct {
uvlong min, avg, max, acc, n, v;