Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: TransformableGroup  (Read 2719 times)

0 Members and 1 Guest are viewing this topic.

Hanmac

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • Email
TransformableGroup
« 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


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: TransformableGroup
« Reply #1 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. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything