mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 10:20:32 +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;
|
int vertex_limit = 20000;
|
||||||
|
|
||||||
bool renderonce = false;
|
bool renderonce = false;
|
||||||
|
int renderlate = 0;
|
||||||
bool rendernogl = false;
|
bool rendernogl = false;
|
||||||
int texturesize = 1024;
|
int texturesize = 1024;
|
||||||
ld scale = 1;
|
ld scale = 1;
|
||||||
@ -1337,6 +1338,10 @@ void actDraw() {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
if(!renderonce) prepareTexture();
|
if(!renderonce) prepareTexture();
|
||||||
|
else if(renderlate) {
|
||||||
|
renderlate--;
|
||||||
|
prepareTexture();
|
||||||
|
}
|
||||||
stereo::set_viewport(0);
|
stereo::set_viewport(0);
|
||||||
physics();
|
physics();
|
||||||
drawRugScene();
|
drawRugScene();
|
||||||
@ -1673,6 +1678,19 @@ int rugArgs() {
|
|||||||
rug_perspective = true;
|
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")) {
|
else if(argis("-rugauto")) {
|
||||||
shift(); ruggo = argf();
|
shift(); ruggo = argf();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user