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

Author Topic: Are there any 2.0 graphic tutorials?  (Read 1907 times)

0 Members and 1 Guest are viewing this topic.

xzbobzx

  • Newbie
  • *
  • Posts: 26
    • View Profile
Are there any 2.0 graphic tutorials?
« on: October 15, 2012, 02:51:17 pm »
The 1.6 tutorials have a graphics section, the 2.0 does not.
Why?
« Last Edit: October 15, 2012, 03:09:01 pm by xzbobzx »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Are there any 2.0 graphic tutorials?
« Reply #1 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 where you could've found the function and a deeper insight too. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Are there any 2.0 graphic tutorials?
« Reply #2 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, ...)".
Laurent Gomila - SFML developer

xzbobzx

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Are there any 2.0 graphic tutorials?
« Reply #3 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, ...)".
Oh hey, indeed.
Cool, so we can expect the 2.0 release any minute now?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Are there any 2.0 graphic tutorials?
« Reply #4 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.
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Are there any 2.0 graphic tutorials?
« Reply #5 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.
Back to C++ gamedev with SFML in May 2023