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

More options for the Rug

This commit is contained in:
Zeno Rogue 2018-02-12 16:21:55 +01:00
parent 759d9bbe8c
commit 2072990474

18
rug.cpp
View File

@ -34,6 +34,7 @@ bool genrug = false;
int vertex_limit = 20000;
bool renderonce = false;
int renderlate = 0;
bool rendernogl = false;
int texturesize = 1024;
ld scale = 1;
@ -1337,6 +1338,10 @@ void actDraw() {
try {
if(!renderonce) prepareTexture();
else if(renderlate) {
renderlate--;
prepareTexture();
}
stereo::set_viewport(0);
physics();
drawRugScene();
@ -1673,6 +1678,19 @@ int rugArgs() {
rug_perspective = true;
}
else if(argis("-rugonce")) {
renderonce = true;
}
else if(argis("-ruglate")) {
renderonce = false;
renderlate += 10;
}
else if(argis("-rugmany")) {
renderonce = false;
}
else if(argis("-rugauto")) {
shift(); ruggo = argf();
}