class EE::Graphics::View¶
The class defines a view like a 2D camera ( position, size, move, scale ). Basically is a 2D proyection in pixels seted over a viewport.
#include <view.hpp> class View { public: // construction View(); View(const Rectf& rectangle); View(const Vector2f& center, const Vector2f& size); // methods void setCenter(float x, float y); void setCenter(const Vector2f& center); void setSize(float width, float height); void setSize(const Sizef& size); void setRotation(float angle); void setViewport(const Rectf& viewport); void reset(const Rectf& rectangle); const Vector2f& getCenter() const; const Sizef& getSize() const; float getRotation() const; const Rectf& getViewport() const; void move(float offsetX, float offsetY); void move(const Vector2f& offset); void rotate(float angle); void zoom(float factor); const Transform& getTransform() const; const Transform& getInverseTransform() const; bool isDirty() const; };