Hallo everyone,
I'm doing the following:
while(app.IsOpened)
{
//event proccessing omitted
app.Clear();
sf::Shape shape(sf::Shape::Rectangle(100,100, 150, 150, sf::Color::Green));
//shape.SetPosition(0,0);
app.Draw(shape);
app.Display();
}
When I comment out the SetPosition line it is just a rectangle with coords 100,100,150,150.
But when I uncomment it i expect it to move to
0,0,50,50
But it just doesent move...
Why is that and what do I have to do to set the position to absolute coords?