SFML community forums

Help => Graphics => Topic started by: xzbobzx on October 15, 2012, 02:51:17 pm

Title: Are there any 2.0 graphic tutorials?
Post by: xzbobzx on October 15, 2012, 02:51:17 pm
The 1.6 tutorials have a graphics section, the 2.0 does not.
Why?
Title: Re: Are there any 2.0 graphic tutorials?
Post by: eXpl0it3r on October 15, 2012, 03:11:24 pm
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. ;)
Title: Re: Are there any 2.0 graphic tutorials?
Post by: Laurent on October 15, 2012, 03:14:18 pm
Quote
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)".
Title: Re: Are there any 2.0 graphic tutorials?
Post by: xzbobzx on October 15, 2012, 05:14:49 pm
Quote
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?
Title: Re: Are there any 2.0 graphic tutorials?
Post by: Laurent on October 15, 2012, 06:17:31 pm
Quote
Cool, so we can expect the 2.0 release any minute now?
No, writing tutorials takes a lot of time.
Title: Re: Are there any 2.0 graphic tutorials?
Post by: FRex on October 15, 2012, 07:54:53 pm
Quote
Cool, so we can expect the 2.0 release any minute now?
I lol'd so hard.