1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-07 18:20:15 +00:00

MAJOR refactoring: all geometry-dependent data (tessf, geom3::, shapes, hpc) are now contained in a structure

This commit is contained in:
Zeno Rogue
2019-05-26 18:04:02 +02:00
parent 9c5344289a
commit b6e303ec7d
35 changed files with 3893 additions and 3836 deletions

View File

@@ -300,13 +300,13 @@ void handlePanning(int sym, int uni) {
if(conformal::on)
conformal::rotation++;
else
View = spin(M_PI/S21/2*shiftmul) * View, didsomething = true;
View = spin(M_PI/cgi.S21/2*shiftmul) * View, didsomething = true;
}
if(sym == SDLK_PAGEDOWN) {
if(conformal::on)
conformal::rotation++;
else
View = spin(-M_PI/S21/2*shiftmul) * View, didsomething = true;
View = spin(-M_PI/cgi.S21/2*shiftmul) * View, didsomething = true;
}
if(sym == SDLK_PAGEUP || sym == SDLK_PAGEDOWN)
@@ -338,7 +338,6 @@ bool handleTune(int sym, int uni) {
else if(uni == 'z')
bscale7 = bscale6 = 1, brot7 = brot6 = 0;
else return false;
resetGeometry();
println(hlog, spaced(bscale7, brot7, bscale6, brot6));
return true;
}