Arreglos varios al codi

This commit is contained in:
2024-10-08 22:38:58 +02:00
parent 3e3d764b25
commit bd3aa0bb06
30 changed files with 177 additions and 227 deletions

View File

@@ -12,11 +12,8 @@
// Constructor
Texture::Texture(SDL_Renderer *renderer, std::string path)
: renderer(renderer), path(path)
{
// Copia punteros
this->renderer = renderer;
this->path = path;
// Inicializa
surface = nullptr;
texture = nullptr;
@@ -53,7 +50,6 @@ Texture::Texture(SDL_Renderer *renderer, std::string path)
// Destructor
Texture::~Texture()
{
// Libera memoria
unload();
}