mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +00:00
3d:: grids
This commit is contained in:
parent
a88a03e26e
commit
1cab16aae7
16
graph.cpp
16
graph.cpp
@ -5130,6 +5130,17 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
|||||||
prec += vid.linequality;
|
prec += vid.linequality;
|
||||||
|
|
||||||
if(0);
|
if(0);
|
||||||
|
#if MAXDIM == 4
|
||||||
|
else if(DIM == 3) {
|
||||||
|
for(int t=0; t<c->type; t++) {
|
||||||
|
if(!c->move(t)) continue;
|
||||||
|
if(hyperbolic && !among(t, 5, 6, 8)) continue;
|
||||||
|
if(!hyperbolic && c->move(t) < c) continue;
|
||||||
|
dynamicval<color_t> p (poly_outline, gridcolor(c, c->move(t)));
|
||||||
|
queuepoly(V, shBinaryWall[t], 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#if CAP_BT
|
#if CAP_BT
|
||||||
else if(binarytiling && DIM == 2) {
|
else if(binarytiling && DIM == 2) {
|
||||||
ld yx = log(2) / 2;
|
ld yx = log(2) / 2;
|
||||||
@ -5147,11 +5158,6 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
|||||||
horizontal(yy, -xx, -2*xx, 4, binary::bd_up_left);
|
horizontal(yy, -xx, -2*xx, 4, binary::bd_up_left);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if CAP_BT && MAXDIM == 4
|
|
||||||
else if(binarytiling && DIM == 3) {
|
|
||||||
binary::queuecube(V, 1, 0xC0C0C080, 0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
else if(isWarped(c) && has_nice_dual()) {
|
else if(isWarped(c) && has_nice_dual()) {
|
||||||
if(pseudohept(c)) for(int t=0; t<c->type; t++)
|
if(pseudohept(c)) for(int t=0; t<c->type; t++)
|
||||||
queueline(V * get_warp_corner(c, t%c->type),
|
queueline(V * get_warp_corner(c, t%c->type),
|
||||||
|
Loading…
Reference in New Issue
Block a user