IntRect rect(0, 0, 0, 0); if(rect.isEmpty()) { std::cout << "Empty rectangle!" << std::endl; } else { std::cout << "Rectangle has size: " << rect.width << "x" << rect.height << std::endl; }
IntRect rect(0, 0, 100, 0); if(rect.isEmpty()) { std::cout << "Empty rectangle!" << std::endl; } else { std::cout << "Rectangle has size: " << rect.width << "x" << rect.height << std::endl; }Package Library: SFML