Hi,
here is my code :
void corps::init(RenderWindow& w)
{
texture.loadFromFile("image.png");
texture.update(w);
sprite.setTexture(texture);
sprite.scale(Vector2f(0.5f, 0.5f));
}
void corps::afficher(RenderWindow& w)
{
w.draw(cercle);
w.draw(sprite);
//supprimer le cerlce et mettre une image
}
My image is square logo, when i display it is cutted aat the top, it display all the image wide put only like 1/5 of the height image. I tried to change texture size but when i use IntRect... it give me an
error abort has been called
I just don't understand why is my image not displaying entirely and why resizing it give me error...