mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 17:03:05 +02:00
21 lines
417 B
C++
21 lines
417 B
C++
#ifndef SPRITE_NODE_HPP
|
|
#define SPRITE_NODE_HPP
|
|
|
|
class SpriteNode : public SceneNode
|
|
{
|
|
public:
|
|
explicit SpriteNode(const sf::Texture& texture);
|
|
SpriteNode(const sf::Texture& texture, const sf::IntRect& rectangle);
|
|
|
|
private:
|
|
virtual void drawCurrent(sf::RenderTarget& target, sf::RenderStates states) const;
|
|
|
|
private:
|
|
sf::Sprite mSprite;
|
|
};
|
|
|
|
|
|
#include "SpriteNode.cpp"
|
|
|
|
#endif // SPRITE_NODE_HPP
|