16 #define GLM_FORCE_RADIANS 17 #include <glm/gtc/matrix_transform.hpp> 52 m_rotation =
static_cast<float>(fmod(angle, 360));
71 void View::move(
float offsetX,
float offsetY,
float offsetZ) {
void setSize(float width, float height)
void move(float offsetX, float offsetY, float offsetZ=0)
Transform m_viewTransform
T y
Top coordinate of the rectangle.
void setCenter(float x, float y, float z=0)
void reset(const FloatRect &rectangle)
virtual const Transform & getTransform() const
bool m_viewTransformUpdated
void setRotation(float angle)
T x
Left coordinate of the rectangle.
virtual const Transform & getViewTransform() const
T width
Width of the rectangle.
T height
Height of the rectangle.