mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
3d:: a 3d image for compasses in the world
This commit is contained in:
parent
149853204a
commit
a94aa81edd
18
graph.cpp
18
graph.cpp
@ -742,11 +742,19 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int pti
|
||||
}
|
||||
else V2 = V;
|
||||
}
|
||||
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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user