25 #ifndef CPP3DS_VIEW_HPP
26 #define CPP3DS_VIEW_HPP
31 #include <cpp3ds/Graphics/Rect.hpp>
32 #include <cpp3ds/Graphics/Transform.hpp>
33 #include <cpp3ds/System/Vector2.hpp>
101 void setSize(
float width,
float height);
203 void move(
float offsetX,
float offsetY);
240 void zoom(
float factor);
277 mutable bool m_transformUpdated;
278 mutable bool m_invTransformUpdated;
284 #endif // SFML_VIEW_HPP
const Vector2f & getSize() const
Get the size of the view.
void rotate(float angle)
Rotate the view relatively to its current orientation.
const Vector2f & getCenter() const
Get the center of the view.
const Transform & getTransform() const
Get the projection transform of the view.
View()
Default constructor.
void reset(const FloatRect &rectangle)
Reset the view to the given rectangle.
float getRotation() const
Get the current orientation of the view.
void setRotation(float angle)
Set the orientation of the view.
void setViewport(const FloatRect &viewport)
Set the target viewport.
void setCenter(float x, float y)
Set the center of the view.
void setSize(float width, float height)
Set the size of the view.
const FloatRect & getViewport() const
Get the target viewport rectangle of the view.
void move(float offsetX, float offsetY)
Move the view relatively to its current position.
2D camera that defines what region is shown on screen
void zoom(float factor)
Resize the view rectangle relatively to its current size.
const Transform & getInverseTransform() const
Get the inverse projection transform of the view.