Metodes per mostrar o amagar la finestra

This commit is contained in:
2025-02-26 08:58:17 +01:00
parent a8e5517a77
commit 64880a427e
2 changed files with 19 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ Screen::Screen(SDL_Window *window, SDL_Renderer *renderer)
setVideoMode(options.video.mode);
// Muestra la ventana
SDL_ShowWindow(window);
show();
}
// Destructor
@@ -483,4 +483,16 @@ void Screen::update()
{
Notifier::get()->update();
Mouse::updateCursorVisibility();
}
// Muestra la ventana
void Screen::show()
{
SDL_ShowWindow(window_);
}
// Oculta la ventana
void Screen::hide()
{
SDL_HideWindow(window_);
}