25 #ifndef SFML_TRANSFORMABLE_HPP
26 #define SFML_TRANSFORMABLE_HPP
31 #include <SFML/Graphics/Export.hpp>
32 #include <SFML/Graphics/Transform.hpp>
70 void setPosition(
float x,
float y);
84 void setPosition(
const Vector2f& position);
98 void setRotation(
float angle);
113 void setScale(
float factorX,
float factorY);
127 void setScale(
const Vector2f& factors);
145 void setOrigin(
float x,
float y);
162 void setOrigin(
const Vector2f& origin);
172 const Vector2f& getPosition()
const;
184 float getRotation()
const;
223 void move(
float offsetX,
float offsetY);
255 void rotate(
float angle);
274 void scale(
float factorX,
float factorY);
312 const Transform& getInverseTransform()
const;
324 mutable bool m_transformNeedUpdate;
326 mutable bool m_inverseTransformNeedUpdate;
332 #endif // SFML_TRANSFORMABLE_HPP