33 lines
795 B
C++
33 lines
795 B
C++
#ifndef BACKGROUND_H_
|
|
# define BACKGROUND_H_
|
|
|
|
#include <string>
|
|
#include <glm/glm.hpp>
|
|
#include <SFML/Graphics.hpp>
|
|
#include "IRenderable.hh"
|
|
#include "Core/Core.hh"
|
|
|
|
namespace DamnCute {
|
|
class Background : public IRenderable {
|
|
|
|
private:
|
|
Background(const Background&);
|
|
float _XSpeed;
|
|
float _YSpeed;
|
|
sf::Sprite _bg;
|
|
sf::Texture _tex;
|
|
|
|
public:
|
|
Background(const std::string&, int = 0, int = 0);
|
|
virtual ~Background() = default;
|
|
float getXScrollSpeed() const ;
|
|
float getYScrollSpeed() const ;
|
|
|
|
void setScrollSpeed(float, float);
|
|
void setPosition(int, int);
|
|
virtual void update(sf::RenderTarget*);
|
|
};
|
|
}
|
|
|
|
#endif /* !BACKGROUND_H_ */
|