Fallo parcial en la carga de animaciones desde streams
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#ifndef ANIMATEDSPRITE_H
|
||||
#define ANIMATEDSPRITE_H
|
||||
@@ -29,7 +31,7 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
AnimatedSprite(LTexture *texture = nullptr, SDL_Renderer *renderer = nullptr, std::string file = "");
|
||||
AnimatedSprite(LTexture *texture = nullptr, SDL_Renderer *renderer = nullptr, std::string file = "", std::stringstream *stream = nullptr);
|
||||
|
||||
// Destructor
|
||||
~AnimatedSprite();
|
||||
@@ -66,7 +68,10 @@ public:
|
||||
int getIndex(std::string name);
|
||||
|
||||
// Carga la animación desde un fichero
|
||||
bool load(std::string filePath);
|
||||
bool loadFromFile(std::string filePath);
|
||||
|
||||
// Carga la animación desde un stream
|
||||
bool loadFromStream(std::stringstream *stream);
|
||||
|
||||
// Establece la animacion actual
|
||||
void setCurrentAnimation(std::string name = "default");
|
||||
|
||||
Reference in New Issue
Block a user