SFML community forums
Help => Graphics => Topic started by: Chuckleluck on December 14, 2011, 07:20:05 pm
-
Hello, I'm fairly new to programming, and the documentation for the `Intersects()' method, part of sf::Rect, confuses me.
This is the code I wrote:
if(Intersects(rcBoxA, rcBoxB))
return true;
(Both boxes are of type sf::Rect<int>)
This is the error I received:
"Error: `Intersects' undeclared (first use this function"
How do I correctly use `Intersects()'?
-
Intersects is a member function of class sf::Rect.
if (rcBoxA.Intersects(rcBoxB))
return true;