Eliminado el procedimiento loadTextureFromFile() de utils.h

This commit is contained in:
2022-09-01 18:59:18 +02:00
parent 4433cc6943
commit 203391da2d
10 changed files with 15 additions and 27 deletions

View File

@@ -140,18 +140,6 @@ bool checkCollision(SDL_Point &p, SDL_Rect &r)
return true;
}
// Carga un archivo de imagen en una textura
bool loadTextureFromFile(LTexture *texture, std::string path, SDL_Renderer *renderer)
{
bool success = true;
if (!texture->loadFromFile(path, renderer))
{
printf("Failed to load %s texture!\n", path.c_str());
success = false;
}
return success;
}
// Devuelve un color_t a partir de un string
color_t stringToColor(std::string str)
{