mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 23:35:11 +08:00
Fix grammar in docs
This commit is contained in:
parent
796592edae
commit
7ea7622ae3
@ -271,7 +271,7 @@ private:
|
|||||||
/// provides an "origin" component, which represents the local origin
|
/// provides an "origin" component, which represents the local origin
|
||||||
/// of the three other components. Let's take an example with a 10x10
|
/// of the three other components. Let's take an example with a 10x10
|
||||||
/// pixels sprite. By default, the sprite is positioned/rotated/scaled
|
/// pixels sprite. By default, the sprite is positioned/rotated/scaled
|
||||||
/// relatively to its top-left corner, because it is the local point
|
/// relative to its top-left corner, because it is the local point
|
||||||
/// (0, 0). But if we change the origin to be (5, 5), the sprite will
|
/// (0, 0). But if we change the origin to be (5, 5), the sprite will
|
||||||
/// be positioned/rotated/scaled around its center instead. And if
|
/// be positioned/rotated/scaled around its center instead. And if
|
||||||
/// we set the origin to (10, 10), it will be transformed around its
|
/// we set the origin to (10, 10), it will be transformed around its
|
||||||
@ -279,7 +279,7 @@ private:
|
|||||||
///
|
///
|
||||||
/// To keep the `sf::Transformable` class simple, there's only one
|
/// To keep the `sf::Transformable` class simple, there's only one
|
||||||
/// origin for all the components. You cannot position the sprite
|
/// origin for all the components. You cannot position the sprite
|
||||||
/// relatively to its top-left corner while rotating it around its
|
/// relative to its top-left corner while rotating it around its
|
||||||
/// center, for example. To do such things, use `sf::Transform` directly.
|
/// center, for example. To do such things, use `sf::Transform` directly.
|
||||||
///
|
///
|
||||||
/// `sf::Transformable` can be used as a base class. It is often
|
/// `sf::Transformable` can be used as a base class. It is often
|
||||||
|
@ -194,7 +194,7 @@ public:
|
|||||||
[[nodiscard]] const FloatRect& getScissor() const;
|
[[nodiscard]] const FloatRect& getScissor() const;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Move the view relatively to its current position
|
/// \brief Move the view relative to its current position
|
||||||
///
|
///
|
||||||
/// \param offset Move offset
|
/// \param offset Move offset
|
||||||
///
|
///
|
||||||
@ -204,7 +204,7 @@ public:
|
|||||||
void move(Vector2f offset);
|
void move(Vector2f offset);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Rotate the view relatively to its current orientation
|
/// \brief Rotate the view relative to its current orientation
|
||||||
///
|
///
|
||||||
/// \param angle Angle to rotate
|
/// \param angle Angle to rotate
|
||||||
///
|
///
|
||||||
@ -214,7 +214,7 @@ public:
|
|||||||
void rotate(Angle angle);
|
void rotate(Angle angle);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Resize the view rectangle relatively to its current size
|
/// \brief Resize the view rectangle relative to its current size
|
||||||
///
|
///
|
||||||
/// Resizing the view simulates a zoom, as the zone displayed on
|
/// Resizing the view simulates a zoom, as the zone displayed on
|
||||||
/// screen grows or shrinks.
|
/// screen grows or shrinks.
|
||||||
|
Loading…
Reference in New Issue
Block a user