139 void Move(
float OffsetX,
float OffsetY);
167 const Matrix3& GetMatrix()
const;
173 void RecomputeMatrix();
Utility class to manipulate 3x3 matrices representing 2D transformations.
Base class for all render targets (window, image, ...).
View(const sf::Vector2f &Center, const sf::Vector2f &HalfSize)
Construct the view from its center and half-size.
void Zoom(float Factor)
Resize the view rectangle to simulate a zoom / unzoom effect.
const sf::Vector2f & GetHalfSize() const
Get the half-size of the view.
void SetHalfSize(float HalfWidth, float HalfHeight)
Change the half-size of the view (take 2 values).
View(const FloatRect &ViewRect=FloatRect(0, 0, 1000, 1000))
Construct the view from a rectangle.
void Move(float OffsetX, float OffsetY)
Move the view (take 2 values).
const sf::FloatRect & GetRect() const
Get the bounding rectangle of the view.
friend class RenderTarget
void SetFromRect(const FloatRect &ViewRect)
Rebuild the view from a rectangle.
void SetHalfSize(const sf::Vector2f &HalfSize)
Change the half-size of the view (take a vector).
void Move(const sf::Vector2f &Offset)
Move the view (take a vector).
const sf::Vector2f & GetCenter() const
Get the center of the view.
void SetCenter(float X, float Y)
Change the center of the view (take 2 values).
void SetCenter(const sf::Vector2f &Center)
Change the center of the view (take a vector).
Vector2< float > Vector2f