Implementats els shaders

This commit is contained in:
2025-02-20 08:48:55 +01:00
parent cc0f050c50
commit 9cb57e2ff2
20 changed files with 957 additions and 104 deletions

View File

@@ -192,7 +192,7 @@ void Game::checkInput()
section->name = SECTION_TITLE;
}
else if (input->checkInput(input_switch_music, REPEAT_FALSE))
else if (input->checkInput(input_toggle_music, REPEAT_FALSE))
{
board.music = !board.music;
board.music ? JA_ResumeMusic() : JA_PauseMusic();
@@ -205,16 +205,21 @@ void Game::checkInput()
else if (input->checkInput(input_toggle_border, REPEAT_FALSE))
{
screen->switchBorder();
screen->toggleBorder();
reLoadTextures();
}
else if (input->checkInput(input_window_fullscreen, REPEAT_FALSE))
else if (input->checkInput(input_toggle_videomode, REPEAT_FALSE))
{
screen->switchVideoMode();
screen->toggleVideoMode();
reLoadTextures();
}
else if (input->checkInput(input_toggle_shaders, REPEAT_FALSE))
{
screen->toggleShaders();
}
else if (input->checkInput(input_window_dec_size, REPEAT_FALSE))
{
screen->decWindowSize();
@@ -227,7 +232,7 @@ void Game::checkInput()
reLoadTextures();
}
else if (input->checkInput(input_swap_palette, REPEAT_FALSE))
else if (input->checkInput(input_toggle_palette, REPEAT_FALSE))
{
switchPalette();
}
@@ -314,7 +319,7 @@ void Game::render()
#endif
// Actualiza la pantalla
screen->blit();
screen->render();
}
#ifdef DEBUG