27 lines
No EOL
605 B
C++
Executable file
27 lines
No EOL
605 B
C++
Executable file
#pragma once
|
|
|
|
#include "gameobject.hpp"
|
|
|
|
namespace asloengine
|
|
{
|
|
|
|
class SpriteObject : public virtual GameObject
|
|
{
|
|
|
|
public:
|
|
SpriteObject(std::string _name);
|
|
SpriteObject(std::string _name, sf::Texture& _texture);
|
|
virtual ~SpriteObject() override;
|
|
|
|
void load_texture(sf::Texture& _texture);
|
|
void set_color(sf::Color& _color);
|
|
sf::Color get_color() const;
|
|
virtual void draw() override;
|
|
virtual void on_main_property_update() override;
|
|
|
|
protected:
|
|
sf::Sprite sprite;
|
|
|
|
};
|
|
|
|
} |