Hello.
i have a little problem with sf::Shape::getTexture().
i want do this because i need get it a texture to class scene because it inherits of sf::Sprite.
then with this code, my app is crashed
Texture = new sf::Texture;
sf::RectangleShape shape;
shape.setFillColor(sf::Color(255,0,0));
shape.setSize(sf::Vector2f(20,20));
shape.setPosition(20,20);
*Texture = *shape.getTexture();
setTexture(*Texture);
How i should do for receive a texture from sf::Shape?
Sorry for my english xDD