SFML community forums
Help => Graphics => Topic started by: tx34 on August 02, 2012, 05:03:30 am
-
I was curious about the sf::RenderWindow API for accessing its view. Specifically I was wondering why the RenderWindow view cannot be accessed and modified directly. In my application I will be updating the view in potentially every frame, so it seems like a waste to have to copy the entire view object twice to modify one property. Of course it is not that big of a deal given it is not a heavy object. Was this decision made to simplify memory management?
-
It makes a lot of things easier. And since handling sf::View instances by copy is not a real problem (and will probably never be), I have no reason to change that. In SFML 1.6 they were handled by reference, and it was creating a lot of ownership problems.