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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Wes

Pages: [1]
1
Feature requests / Re: scale(float factor)
« on: March 29, 2016, 09:41:35 pm »
I thought there had to be a reason this feature didn't exist yet. It was too obvious. Thanks anyways ;)

2
Feature requests / scale(float factor)
« on: March 27, 2016, 11:26:02 pm »
Currently, sf::Transformable has:
setScale(const sf::Vector2f& factors);
scale(const sf::Vector2f& factors);
The scale function is conveniently equivalent to setScale(getScale() * factors)

For added convenience sf::Transformable also has:
setScale(float factorX, float factorY);
scale(float factorX, float factorY);
These functions do the same thing, but they construct the factor-vector for you out of factorX and factorY.
Instead of doing scale(sf::Vector2f(x, y)), you can do scale(x, y)

In my opinion, for additional convenience, sf::Transformable should also have:
setScale(float factor);
scale(float factor);
These functions would do the same thing as the other convenience functions, except both parameters of the factor-vector would be factor.
scale(2) would be the same as scale(2, 2)
setScale(2) would be the same as setScale(2, 2)

If people agree, I'd be more than happy to make a pull-request.

3
General discussions / SFML is Great!
« on: March 23, 2016, 10:52:08 pm »
I absolutely love the SFML API!
I started programming a few years ago because I wanted to make video games. About a year ago I started experimenting with SFML. Now I've made several games with SFML and plan on making many many more.
Thank you to everyone who has contributed to SFML.
Also thank you to everyone who contributed to SFML Game Development, a very insightful book.

Pages: [1]