mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
More options for the Rug
This commit is contained in:
parent
759d9bbe8c
commit
2072990474
18
rug.cpp
18
rug.cpp
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user