forked from jaildesigner-jailgames/jaildoctors_dilemma
Implementats els shaders
This commit is contained in:
@@ -171,16 +171,21 @@ void Title::checkInput()
|
||||
|
||||
else if (input->checkInput(input_toggle_border, REPEAT_FALSE))
|
||||
{
|
||||
screen->switchBorder();
|
||||
screen->toggleBorder();
|
||||
resource->reLoadTextures();
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_window_fullscreen, REPEAT_FALSE))
|
||||
else if (input->checkInput(input_toggle_videomode, REPEAT_FALSE))
|
||||
{
|
||||
screen->switchVideoMode();
|
||||
screen->toggleVideoMode();
|
||||
resource->reLoadTextures();
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_toggle_shaders, REPEAT_FALSE))
|
||||
{
|
||||
screen->toggleShaders();
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_window_dec_size, REPEAT_FALSE))
|
||||
{
|
||||
screen->decWindowSize();
|
||||
@@ -193,7 +198,7 @@ void Title::checkInput()
|
||||
resource->reLoadTextures();
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_swap_palette, REPEAT_FALSE))
|
||||
else if (input->checkInput(input_toggle_palette, REPEAT_FALSE))
|
||||
{
|
||||
switchPalette();
|
||||
}
|
||||
@@ -326,7 +331,7 @@ void Title::render()
|
||||
|
||||
if (state == show_menu)
|
||||
{
|
||||
// Dibuja la textura de fondo
|
||||
// Dibuja la textura de fondo
|
||||
SDL_RenderCopy(renderer, bgTexture, nullptr, nullptr);
|
||||
|
||||
// Dibuja la marquesina
|
||||
@@ -350,7 +355,7 @@ void Title::render()
|
||||
}
|
||||
|
||||
// Vuelca el contenido del renderizador en pantalla
|
||||
screen->blit();
|
||||
screen->render();
|
||||
}
|
||||
|
||||
// Bucle para el logo del juego
|
||||
@@ -438,10 +443,10 @@ void Title::fillTexture()
|
||||
sprite->render();
|
||||
|
||||
// Borra la firma
|
||||
//const color_t coverColor = stringToColor(options->palette, "black");
|
||||
//SDL_SetRenderDrawColor(renderer, coverColor.r, coverColor.g, coverColor.b, 0xFF);
|
||||
//SDL_Rect coverRect = {28, 11, 21, 5};
|
||||
//SDL_RenderFillRect(renderer, &coverRect);
|
||||
// const color_t coverColor = stringToColor(options->palette, "black");
|
||||
// SDL_SetRenderDrawColor(renderer, coverColor.r, coverColor.g, coverColor.b, 0xFF);
|
||||
// SDL_Rect coverRect = {28, 11, 21, 5};
|
||||
// SDL_RenderFillRect(renderer, &coverRect);
|
||||
|
||||
// Escribe el texto en la textura
|
||||
const color_t textColor = stringToColor(options->palette, "green");
|
||||
|
||||
Reference in New Issue
Block a user