1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

3d:: a 3d image for compasses in the world

This commit is contained in:
Zeno Rogue 2019-03-04 17:57:54 +01:00
parent 149853204a
commit a94aa81edd

View File

@ -742,11 +742,19 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int pti
}
else V2 = V;
}
if(DIM == 3) {
queuepoly(Vit, shRing, 0xFFFFFFFF);
V2 = V2 * cspin(1, 2, M_PI * sintick(100) / 39);
queuepoly(V2, shCompass3, 0xFF0000FF);
queuepoly(V2 * pispin, shCompass3, 0x000000FF);
}
else {
if(c) V2 = V2 * spin(M_PI * sintick(100) / 30);
queuepoly(V2, shCompass1, 0xFF8080FF);
queuepoly(V2, shCompass2, 0xFFFFFFFF);
queuepoly(V2, shCompass3, 0xFF0000FF);
queuepoly(V2 * pispin, shCompass3, 0x000000FF);
}
xsh = NULL;
}