Nope, i knew it. Thank you. The question is how
shape.getPosition();
work..
Like
sf::RectangleShape shp(sf::Vector2f(50, 50));
shp.setPosition(0, 334);
shp.setFillColor(sf::Color::Red);
shp.getPosition(); // [color=red]after that i need X and Y of my rectangle in the console.. [/color]
while (window.isOpen())
{
and lalala..
Probably i try to write something like that :
//
int x, y;
x=y=0;
shp.getPosition(x, y);
std::cout<<x<<y;
But getPosittion don`t call any arguments..