1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-03-23 11:57:03 +00:00

3d:: lines with priority set to SUPERLINE ignore depth testing as expected

This commit is contained in:
? 2019-02-28 19:01:24 +01:00 committed by Zeno Rogue
parent dd57f2733a
commit 33cc46e8d1

View File

@ -1225,7 +1225,7 @@ void prettylinesub(const hyperpoint& h1, const hyperpoint& h2, int lev) {
else prettypoint(h2); else prettypoint(h2);
} }
void prettyline(hyperpoint h1, hyperpoint h2, color_t col, int lev, int flags) { void prettyline(hyperpoint h1, hyperpoint h2, color_t col, int lev, int flags, PPR prio) {
prettylinepoints.clear(); prettylinepoints.clear();
prettypoint(h1); prettypoint(h1);
prettylinesub(h1, h2, lev); prettylinesub(h1, h2, lev);
@ -1241,6 +1241,7 @@ void prettyline(hyperpoint h1, hyperpoint h2, color_t col, int lev, int flags) {
ptd.flags = POLY_ISSIDE | POLY_PRECISE_WIDE | flags; ptd.flags = POLY_ISSIDE | POLY_PRECISE_WIDE | flags;
ptd.tinf = NULL; ptd.tinf = NULL;
ptd.intester = C0; ptd.intester = C0;
ptd.prio = prio;
ptd.draw(); ptd.draw();
} }
@ -1275,7 +1276,7 @@ void queuereset(eModel m, PPR prio) {
void dqi_line::draw() { void dqi_line::draw() {
dynamicval<ld> d(vid.linewidth, width); dynamicval<ld> d(vid.linewidth, width);
dynamicval<ld> bs(hr::band_shift, band_shift); dynamicval<ld> bs(hr::band_shift, band_shift);
prettyline(H1, H2, color, prf, 0); prettyline(H1, H2, color, prf, 0, prio);
} }
void dqi_string::draw() { void dqi_string::draw() {