SFML community forums
Help => Graphics => Topic started by: xzbobzx on October 15, 2012, 02:51:17 pm
-
The 1.6 tutorials have a graphics section, the 2.0 does not.
Why?
-
The basic concept of images/textures have changed in SFML 2.
While you just had sf::Image for everything in SFML 1.6, you now get sf::Image and sf::Texture. One can say that sf::Image lives in the CPU related memory (RAM/VRAM) while the sf::Texture lives in the GPU related memory.
sf::Texture is now required if you want to display it on the screen or draw it to a render texture. Thus the function on a sf::Sprite is now called .setTexture().
sf::Image is used to manipulate pixels, which means loading/saving a image or changing any pixel.
Additionally always make sure to check out the documentation (http://www.sfml-dev.org/documentation/2.0/classsf_1_1Sprite.php) where you could've found the function and a deeper insight too. ;)
-
Why?
Because SFML 2.0 is not finished yet. And if you look at the task tracker, there's only one task left to be done before the release, which is "update the website (tutorials, ...) (https://github.com/SFML/SFML/issues?milestone=5&page=1&state=open)".
-
Why?
Because SFML 2.0 is not finished yet. And if you look at the task tracker, there's only one task left to be done before the release, which is "update the website (tutorials, ...) (https://github.com/SFML/SFML/issues?milestone=5&page=1&state=open)".
Oh hey, indeed.
Cool, so we can expect the 2.0 release any minute now?
-
Cool, so we can expect the 2.0 release any minute now?
No, writing tutorials takes a lot of time.
-
Cool, so we can expect the 2.0 release any minute now?
I lol'd so hard.