264 FloatRect m_viewport{{0, 0}, {1, 1}};
266 mutable Transform m_transform;
267 mutable Transform m_inverseTransform;
268 mutable bool m_transformUpdated{};
269 mutable bool m_invTransformUpdated{};
#define SFML_GRAPHICS_API
Definition Export.hpp:42
Represents an angle value.
Definition Angle.hpp:35
View(Vector2f center, Vector2f size)
Construct the view from its center and size.
View(const FloatRect &rectangle)
Construct the view from a rectangle.
void rotate(Angle angle)
Rotate the view relatively to its current orientation.
void setCenter(Vector2f center)
Set the center of the view.
const FloatRect & getScissor() const
Get the scissor rectangle of the view.
void setSize(Vector2f size)
Set the size of the view.
void zoom(float factor)
Resize the view rectangle relatively to its current size.
Vector2f getSize() const
Get the size of the view.
void setScissor(const FloatRect &scissor)
Set the target scissor rectangle.
Angle getRotation() const
Get the current orientation of the view.
void move(Vector2f offset)
Move the view relatively to its current position.
void setRotation(Angle angle)
Set the orientation of the view.
View()=default
Default constructor.
void setViewport(const FloatRect &viewport)
Set the target viewport.
const FloatRect & getViewport() const
Get the target viewport rectangle of the view.
const Transform & getInverseTransform() const
Get the inverse projection transform of the view.
Vector2f getCenter() const
Get the center of the view.
const Transform & getTransform() const
Get the projection transform of the view.
Definition BlendMode.hpp:34
Rect< float > FloatRect
Definition Rect.hpp:154
Vector2< float > Vector2f
Definition Vector2.hpp:226