SFML community forums

General => Feature requests => Topic started by: Hanmac on July 16, 2013, 06:16:13 pm

Title: TransformableGroup
Post by: Hanmac on July 16, 2013, 06:16:13 pm
i think an nice little helper would be an TransformableGroup that inherits from Transformable and Drawable

its works like an vector for Transformable/Drawable methods but when you use Transform methods like move or rotate it also moves and rotates the object inside the group (but the group has its own rotation orign)

when you draw the TransformableGroup it also draws all objects using its own Transform infomation.

i didnt get a sample code working because i think Transformable need more virtual methods

Title: Re: TransformableGroup
Post by: eXpl0it3r on July 16, 2013, 06:23:37 pm
You can implement this Group/Node/SceneGraph with SFML already. There should be already a few requests for this, you might find further explanations there. :)