Afegida la funció getRenderer() a la classe Screen per tal d'estalviar altre parametre mes a molts constructors de classes-estat de joc

This commit is contained in:
2024-08-12 08:03:30 +02:00
parent 45731c8294
commit 477891cac7
5 changed files with 13 additions and 5 deletions

View File

@@ -431,4 +431,10 @@ void Screen::attenuate(bool value)
void Screen::showNotification(std::string text1, std::string text2, int icon)
{
notify->showText(text1, text2, icon);
}
// Obtiene el puntero al renderizador
SDL_Renderer *Screen::getRenderer()
{
return renderer;
}