Bonsoirs,
alors voila, je souhaite créer une image à partir d'une Shape (normale quoi

), et je rencontre un petit bug au niveau de Shape::getTexture() que je vais vous illustrer avec le code suivant :
sf::RectangleShape shape(sf::Vector2f(rect.width, title.getSize().y));
shape.setFillColor(backgroundTitle); //backgroundTitle est une couleur reçu en paramètre de cette fonction
shape.setPosition(getPosition().x, getPosition().y);
sf::Sprite sprite;
if(shape.getTexture()) //sa return NULL
sprite.setTexture(*(shape.getTexture()));
Voila, je pense que c'est tout

. Merci d'avance

ps : j'utilise la sfml2.0 (j'imagine que c'était simple à trouver, non ?

).