mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 23:35:11 +08:00
Update migration guide
This commit is contained in:
parent
97541c6244
commit
1a2f566f12
@ -223,8 +223,7 @@ Here is a complete list of all enumerations which have undergone this change:
|
|||||||
|
|
||||||
## `sf::Rect<T>`
|
## `sf::Rect<T>`
|
||||||
|
|
||||||
`sf::Rect<T>` has been refactored from 4 scalar values into 2 `sf::Vector2<T>`s.
|
`sf::Rect<T>` has been refactored from the four scalar values `top`, `left`, `width`, and `height` into two `sf::Vector2<T>`s named `position` and `size`.
|
||||||
Its two data members are `sf::Vector2<T>`s named `position` and `size`.
|
|
||||||
This means that `sf::Rect<T>::getPosition()` and `sf::Rect<T>::getSize()` have been removed in favor of directly accessing the `position` and `size` data members.
|
This means that `sf::Rect<T>::getPosition()` and `sf::Rect<T>::getSize()` have been removed in favor of directly accessing the `position` and `size` data members.
|
||||||
The 4-parameter constructor was also removed in favor of the constructor which takes two `sf::Vector2<T>`s.
|
The 4-parameter constructor was also removed in favor of the constructor which takes two `sf::Vector2<T>`s.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user