mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 16:43:05 +02:00
20 lines
392 B
C++
20 lines
392 B
C++
#ifndef SPRITE_NODE_CPP
|
|
#define SPRITE_NODE_CPP
|
|
|
|
SpriteNode::SpriteNode(const sf::Texture& texture)
|
|
: mSprite(texture)
|
|
{
|
|
}
|
|
|
|
SpriteNode::SpriteNode(const sf::Texture& texture, const sf::IntRect& textureRect)
|
|
: mSprite(texture, textureRect)
|
|
{
|
|
}
|
|
|
|
void SpriteNode::drawCurrent(sf::RenderTarget& target, sf::RenderStates states) const
|
|
{
|
|
target.draw(mSprite, states);
|
|
}
|
|
|
|
#endif // SPRITE_NODE_CPP
|