SFML community forums
Help => Graphics => Topic started by: lubos on September 02, 2007, 03:04:30 pm
-
In Drawable class, why its called SetLeft() & SetTop() instead of SetX() & SetY()? I think more users would be comfortable with second method. what do you think?
-
I think Laurent use thoses names because of Left,Right,Top,Bottom of the sfRect class. The Sprite use this class, and what you do is just setting the top and left coords.
But I thought the same thing first time I saw them. Maybe both functions doing the same can be an idea ?
-
I think Left and Top are just clearer than X and Y. You don't wonder if it refers to the center of the sprite, the center of rotation, the left-bottom corner, etc.