añadidos nuevos ficheros de clases
This commit is contained in:
@@ -16,8 +16,8 @@ public:
|
||||
~Sprite();
|
||||
|
||||
// Inicializador
|
||||
void init(int x, int y, Uint16 w, Uint16 h, LTexture *texture, SDL_Renderer *renderer);
|
||||
void init(SDL_Rect rect, LTexture *texture, SDL_Renderer *renderer);
|
||||
//void init(LTexture *texture, SDL_Renderer *renderer, int x = 0, int y = 0, Uint16 w = 0, Uint16 h = 0);
|
||||
void init(LTexture *texture, SDL_Renderer *renderer, SDL_Rect rect = {0, 0, 0, 0});
|
||||
|
||||
// Muestra el sprite por pantalla
|
||||
void render();
|
||||
@@ -70,10 +70,8 @@ protected:
|
||||
Uint16 mHeight; // Alto del sprite
|
||||
|
||||
SDL_Renderer *mRenderer; // Puntero al renderizador
|
||||
|
||||
LTexture *mTexture; // Textura donde estan todos los dibujos del sprite
|
||||
|
||||
SDL_Rect mSpriteClip; // Rectangulo de la textura que se dibujará en pantalla
|
||||
LTexture *mTexture; // Textura donde estan todos los dibujos del sprite
|
||||
SDL_Rect mSpriteClip; // Rectangulo que apunta a la posición de la textura donde está el grafico que se dibujará en pantalla
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user