📜  在 sfml 中绘制矩形 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:44.493000             🧑  作者: Mango

代码示例1
// define a 120x50 rectangle
sf::RectangleShape rectangle(sf::Vector2f(120, 50));

// change the size to 100x100
rectangle.setSize(sf::Vector2f(100, 100));