From eeda874d7c96703668d8ea9da2a4d22299ae4e5f Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 13 Sep 2024 14:29:57 +0000 Subject: turn the camera rendering options into a bitmap. --- graphics.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'graphics.h') 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; -- cgit v1.2.3