1
General / Why was sf::Shape split up?
« on: April 08, 2012, 07:18:22 am »
I was wondering why sf::Shape was split up from SFML 1.6 to SFML 2. I tried to convert my nice static base class to SFML2 only to find out sf::Shape were split up into sf::RectangleShape, sf::CircleShape, etc. making it impossible/unclean to have my baseclass control the derived.
I'm also wondering why the simple Line shape was phased out in favor of vertex arrays.
At least have a way of converting between the types to simplify drawing. Now I have to move all my base functions into the derived classes, destroying the point of having clean derived classes.
I'm also wondering why the simple Line shape was phased out in favor of vertex arrays.
At least have a way of converting between the types to simplify drawing. Now I have to move all my base functions into the derived classes, destroying the point of having clean derived classes.