1
Graphics / how to detect when mouseover an object
« on: January 19, 2010, 08:52:09 am »
You can use the Contains method of the rect.
Code: [Select]
bool Match (float x, float y)
{
// m_rect is of type sf::FloatRect
return m_rect.Contains (x,y);
}