holesome/src/sprites/sprite_factory.hpp

21 lines
660 B
C++

#ifndef HOLESOME_SPRITE_FACTORY_HPP
#define HOLESOME_SPRITE_FACTORY_HPP
#include <string>
#include <SFML/System/Vector2.hpp>
#include "single_sprite.hpp"
#include "animated_sprite.hpp"
#include "sprite_sheet.hpp"
#include "../logging/easylogging++.h"
class SpriteFactory
{
public:
static std::shared_ptr<SingleSprite> createSingleSprite(const std::string& name, sf::Vector2f size = sf::Vector2f(0, 0));
static std::shared_ptr<AnimatedSprite> createAnimatedSprite(const std::string& name, sf::Vector2f size = sf::Vector2f(0, 0));
static std::shared_ptr<SpriteSheet> createSheet(const std::string& name);
};
#endif //HOLESOME_SPRITE_FACTORY_HPP