class SFML::TransformableObject

Standalone transformable — a pure CSFML transform container (no geometry attached). Useful as a base for custom drawables that combine a transform with their own rendering: parent the child’s vertices to this object’s transform and you get position / rotation / scale / origin for free.

Most users want the Graphics::Transformable mixin instead — this standalone class exists for symmetry with the C++ API.

t = SFML::TransformableObject.new(position: [400, 300], rotation: 45) t.transform #=> SFML::C::Graphics::Transform (use via RenderStates)