24 #ifndef GF_TRANSFORMABLE_H 25 #define GF_TRANSFORMABLE_H 29 #include "GraphicsApi.h" 35 #ifndef DOXYGEN_SHOULD_SKIP_THIS 150 void setPosition(
Vector2f position);
193 void setRotation(
float angle);
252 setScale({ factor, factor });
298 scale({ factor, factor });
324 Matrix3f getInverseTransform()
const;
336 void setOriginFromAnchorAndBounds(
Anchor anchor,
const RectF& bounds);
345 #ifndef DOXYGEN_SHOULD_SKIP_THIS 350 #endif // GF_TRANSFORMABLE_H
GF_CORE_API void scale(Matrix3f &mat, Vector2f factor)
Combine the current transform with a scaling.
Abstract base class for objects that can be drawn to a render window.
Definition: Drawable.h:57
The namespace for gf classes.
Definition: Action.h:35
Anchor
An anchor of a box.
Definition: Anchor.h:38
GF_CORE_API float angle(Direction direction)
Get an angle from a direction.
General purpose math vector.
Definition: Vector.h:61
GF_CORE_API void rotate(Matrix3f &mat, float angle)
Combine the current transform with a rotation.