forked from jaildesigner-jailgames/jaildoctors_dilemma
Eliminado el procedimiento loadTextureFromFile() de utils.h
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user