📅  最后修改于: 2022-03-11 15:00:44.493000             🧑  作者: Mango
// define a 120x50 rectangle
sf::RectangleShape rectangle(sf::Vector2f(120, 50));
// change the size to 100x100
rectangle.setSize(sf::Vector2f(100, 100));