Hello I tried to do a function:
bool MouseOnButton(sf::RenderWindow windowName, int minX, int maxX, int minY, int maxY) {
if (sf::Mouse::getPosition(windowName).x > minX && sf::Mouse::getPosition(windowName).x < maxX &&
sf::Mouse::getPosition(windowName).y > minY && sf::Mouse::getPosition(windowName).y < maxY)
return true;
else return false;
}
and when Im trying to check it:
So, what is worng with my "sf::RenderWindow" variable like argument?