Loading...
Searching...
No Matches
Transformable.h
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
74CSFML_GRAPHICS_API void sfTransformable_setPosition(sfTransformable* transformable, sfVector2f position);
100CSFML_GRAPHICS_API void sfTransformable_setScale(sfTransformable* transformable, sfVector2f scale);
116CSFML_GRAPHICS_API void sfTransformable_setOrigin(sfTransformable* transformable, sfVector2f origin);
194CSFML_GRAPHICS_API void sfTransformable_scale(sfTransformable* transformable, sfVector2f factors);
204CSFML_GRAPHICS_API sfTransform sfTransformable_getTransform(const sfTransformable* transformable);
214CSFML_GRAPHICS_API sfTransform sfTransformable_getInverseTransform(const sfTransformable* transformable);
sfTransform sfTransformable_getTransform(const sfTransformable *transformable)
Get the combined transform of a transformable.
sfVector2f sfTransformable_getPosition(const sfTransformable *transformable)
Get the position of a transformable.
sfTransform sfTransformable_getInverseTransform(const sfTransformable *transformable)
Get the inverse of the combined transform of a transformable.
void sfTransformable_setOrigin(sfTransformable *transformable, sfVector2f origin)
Set the local origin of a transformable.
void sfTransformable_scale(sfTransformable *transformable, sfVector2f factors)
Scale a transformable.
void sfTransformable_destroy(sfTransformable *transformable)
Destroy an existing transformable.
void sfTransformable_rotate(sfTransformable *transformable, float angle)
Rotate a transformable.
void sfTransformable_setRotation(sfTransformable *transformable, float angle)
Set the orientation of a transformable.
void sfTransformable_setScale(sfTransformable *transformable, sfVector2f scale)
Set the scale factors of a transformable.
float sfTransformable_getRotation(const sfTransformable *transformable)
Get the orientation of a transformable.
sfVector2f sfTransformable_getOrigin(const sfTransformable *transformable)
Get the local origin of a transformable.
void sfTransformable_setPosition(sfTransformable *transformable, sfVector2f position)
Set the position of a transformable.
void sfTransformable_move(sfTransformable *transformable, sfVector2f offset)
Move a transformable by a given offset.
sfVector2f sfTransformable_getScale(const sfTransformable *transformable)
Get the current scale of a transformable.
sfTransformable * sfTransformable_copy(const sfTransformable *transformable)
Copy an existing transformable.