Asignada tecla F4 para activar/desactivar los shaders

This commit is contained in:
2024-06-30 09:48:49 +02:00
parent 12711d38f0
commit 097320cff7
5 changed files with 21 additions and 2 deletions

View File

@@ -24,9 +24,12 @@ enum inputs_e
input_fire_left,
input_fire_center,
input_fire_right,
// Inputs estandar
input_window_fullscreen,
input_window_inc_size,
input_window_dec_size,
input_video_shaders,
// Input obligatorio
input_number_of_inputs

View File

@@ -400,4 +400,11 @@ void Screen::doFlash()
// Actualiza la lógica del efecto
flashEffect.counter < flashEffect.lenght ? flashEffect.counter++ : flashEffect.enabled = false;
}
}
// Activa/desactiva los shaders
void Screen::switchShaders()
{
options->video.shaders = !options->video.shaders;
setVideoMode(options->video.mode);
}

View File

@@ -136,6 +136,9 @@ public:
// Pone la pantalla de color
void flash(color_t color, int lenght);
// Activa/desactiva los shaders
void switchShaders();
};
#endif