1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-06 00:33:01 +00:00

new flag, gridbelow

This commit is contained in:
Zeno Rogue
2025-06-22 15:52:12 +02:00
parent e29cf996fa
commit 665d5292c2

View File

@@ -4359,6 +4359,8 @@ int grid_depth = 0;
EX bool fat_edges = false; EX bool fat_edges = false;
EX bool gridbelow;
EX void gridline(const shiftmatrix& V1, const hyperpoint h1, const shiftmatrix& V2, const hyperpoint h2, color_t col, int prec) { EX void gridline(const shiftmatrix& V1, const hyperpoint h1, const shiftmatrix& V2, const hyperpoint h2, color_t col, int prec) {
transmatrix U2 = unshift(V2, V1.shift); transmatrix U2 = unshift(V2, V1.shift);
@@ -4420,7 +4422,7 @@ EX void gridline(const shiftmatrix& V1, const hyperpoint h1, const shiftmatrix&
} }
else else
#endif #endif
queueline(V1*h1, V2*h2, col, prec); queueline(V1*h1, V2*h2, col, prec, gridbelow ? PPR::FLOORd : PPR::LINE);
} }
EX void gridline(const shiftmatrix& V, const hyperpoint h1, const hyperpoint h2, color_t col, int prec) { EX void gridline(const shiftmatrix& V, const hyperpoint h1, const hyperpoint h2, color_t col, int prec) {