summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-21 15:49:04 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-21 15:49:04 +0100
commit3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665 (patch)
tree4fa3363892c0cf7ad7483b87f1b951a8c192a7be /src/Render.cpp
parentMoved face lighting to lighting pass (diff)
downloadAltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.tar
AltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.tar.gz
AltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.tar.bz2
AltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.tar.lz
AltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.tar.xz
AltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.tar.zst
AltCraft-3f14653e536c6c4b4bb9e4d0a6b2ec0dfeadc665.zip
Diffstat (limited to '')
-rw-r--r--src/Render.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Render.cpp b/src/Render.cpp
index 48114b0..148ec27 100644
--- a/src/Render.cpp
+++ b/src/Render.cpp
@@ -335,6 +335,22 @@ void Render::HandleEvents() {
break;
}
+ case SDL_SCANCODE_F9: {
+ if (sdlKeyMods & KMOD_CTRL) {
+ renderBuff = 0;
+ } else if (sdlKeyMods & KMOD_SHIFT) {
+ renderBuff--;
+ if (renderBuff < 0)
+ renderBuff = 0;
+ } else {
+ renderBuff++;
+ if (renderBuff > gbuffer->GetMaxRenderBuffers())
+ renderBuff = 0;
+ }
+ gbuffer->SetRenderBuff(renderBuff);
+ break;
+ }
+
default:
break;
}