feat(postfx): toggle F6 per activar/desactivar el postprocessat

This commit is contained in:
2026-05-21 18:45:29 +02:00
parent ae946b578e
commit 625cb19cba
7 changed files with 45 additions and 16 deletions
+10
View File
@@ -377,3 +377,13 @@ void SDLManager::toggleAntialias() {
notifier->notifyInfo(cfg_->rendering.antialias != 0 ? "AA ACTIU" : "AA INACTIU");
}
}
void SDLManager::togglePostFx() {
const bool NEW_STATE = !gpu_renderer_.isPostFxEnabled();
gpu_renderer_.setPostFxEnabled(NEW_STATE);
// No persistim: el toggle és per A/B testing visual, l'estat per defecte
// del joc continua sent "postfx ON" segons defaults/YAML.
if (auto* notifier = System::Notifier::get(); notifier != nullptr) {
notifier->notifyInfo(NEW_STATE ? "POSTPROCESSAT ACTIU" : "POSTPROCESSAT INACTIU");
}
}