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

Author Topic: SetImage() no longer work?  (Read 1323 times)

0 Members and 1 Guest are viewing this topic.

Sanction

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
SetImage() no longer work?
« on: August 02, 2016, 06:16:42 pm »
I was following this tutorial: https://github.com/SFML/SFML/wiki/Tutorial:-Image-Manager
 
and when I got to this point:

test_sprite[i].SetImage( img_mgr.get_image( "test.png" ) );

Can you no longer use SetImage()? I'm using SFML 2.3.2
Can anyone Help? and would you suggest turning this ImageManager into a TextureManager?
Knowledge comes, but wisdom lingers. It may not be difficult to store up in the mind a vast quantity of facts within a comparatively short time, but the ability to form judgments requires the severe discipline of hard work and the tempering heat of experience and maturity.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SetImage() no longer work?
« Reply #1 on: August 02, 2016, 06:36:07 pm »
Did you look at the official tutorial or documentation? It's all there. We now have sf::Image and sf::Texture and you need to understand when to use which one. Plus function names are different, as you can look up in the documentation.

As for a resource manager, you could also look at the Thor library.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/