summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-13 14:31:00 +0000
committerrodri <rgl@antares-labs.eu>2024-09-13 14:31:00 +0000
commit3c16d2adc58ea335203c24d34b58b2f51bf55da6 (patch)
treea81c8b92af9d8b567c474034a99b032d9d1648b2
parent5f85121769d962707ebdb9519471d200b3d1d8c9 (diff)
download3dee-3c16d2adc58ea335203c24d34b58b2f51bf55da6.tar.gz
3dee-3c16d2adc58ea335203c24d34b58b2f51bf55da6.tar.bz2
3dee-3c16d2adc58ea335203c24d34b58b2f51bf55da6.zip
vis: now camera render options is a bitmap.
-rw-r--r--vis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vis.c b/vis.c
index 135ccdd..cfb1227 100644
--- a/vis.c
+++ b/vis.c
@@ -569,9 +569,9 @@ drawstats(void)
snprint(stats[Sframes], sizeof(stats[Sframes]), "frame %llud", maincam->stats.nframes);
snprint(stats[Sorient], sizeof(stats[Sorient]), "ℍ %V", (Point3)orient);
snprint(stats[Sextra], sizeof(stats[Sextra]), "blend %s z-buf %s a-buf %s",
- maincam->enableblend? "on": "off",
- maincam->enabledepth? "on": "off",
- maincam->enableAbuff? "on": "off");
+ maincam->rendopts & ROBlend? "on": "off",
+ maincam->rendopts & RODepth? "on": "off",
+ maincam->rendopts & ROAbuff? "on": "off");
for(i = 0; i < Se; i++)
stringbg(screen, addpt(screen->r.min, Pt(10,10 + i*font->height)), display->black, ZP, font, stats[i], display->white, ZP);
}
@@ -786,13 +786,13 @@ mmb(void)
maincam->cullmode = CullNone;
break;
case TGLBLEND:
- maincam->enableblend ^= 1;
+ maincam->rendopts ^= ROBlend;
break;
case TGLDEPTH:
- maincam->enabledepth ^= 1;
+ maincam->rendopts ^= RODepth;
break;
case TGLABUFF:
- maincam->enableAbuff ^= 1;
+ maincam->rendopts ^= ROAbuff;
break;
}
unlockdisplay(display);