LaurentGomila/SFML — Issue #135: Suggestion
Author: RemcoRino
Created: 2011-12-17 09:30:41+00:00
State: open

It would be nice if the drawables setter methods could return a reference to themselves, so we can do reference chainging:

e.g.
Now:
sf::Sprite.SetPosition( 10.9f, -12.4f );
sf::Sprite.SetColor( r, g, b);
sf::Sprite.SetOrigin( 5, 34);

With refrence chaining:

sf::Sprite.SetPosition( 10.9f, -12.4f)
.SetColor( r, g, b)
.SetOrigin( 5, 34);