eliminats tots els #ifndef. Sembla que #pragma once ja funciona, no com fa quatre anys 😌
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
#include <SDL2/SDL.h>
|
||||
#include "texture.h"
|
||||
|
||||
#ifndef SPRITE_H
|
||||
#define SPRITE_H
|
||||
|
||||
// Clase sprite
|
||||
class Sprite
|
||||
{
|
||||
@@ -97,6 +94,4 @@ public:
|
||||
|
||||
// Establece los valores de posición y tamaño del sprite
|
||||
void setRect(SDL_Rect rect);
|
||||
};
|
||||
|
||||
#endif
|
||||
};
|
||||
Reference in New Issue
Block a user