1
Graphics / Best way to resize a sprite in SFML2
« on: February 06, 2012, 12:03:42 am »
Hi,
In SFML 1.x, it was possible to resize a sprite with the method Resize(). It's a very convenient way of drawing textured lines, for example.
However, in the new API, there is no such function: GetLocalBounds() seems to give it, but there is no setter for the size!
I suppose there is another way of doing it, but how?
In SFML 1.x, it was possible to resize a sprite with the method Resize(). It's a very convenient way of drawing textured lines, for example.
However, in the new API, there is no such function: GetLocalBounds() seems to give it, but there is no setter for the size!
I suppose there is another way of doing it, but how?