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

Author Topic: no matching function for call to ‘sf::Texture::update(sf::Texture&)  (Read 1236 times)

0 Members and 1 Guest are viewing this topic.

Daniel Schreiber Mendes

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Hey, why does this give me the following error?
sf::Texture t;
sf::Texture t2;
   
t.create(300, 300);
t2.create(100, 100);
   
t.update(t2);
 
error: no matching function for call to ‘sf::Texture::update(sf::Texture&)
     t.update(t2);
 
When this function definitely exists?
void sf::Texture::update(const Texture &texture)       
 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11035
    • View Profile
    • development blog
    • Email
Re: no matching function for call to ‘sf::Texture::update(sf::Texture&)
« Reply #1 on: November 16, 2019, 09:37:12 pm »
Maybe you're using an older version of SFML or you didn't update your header files?

Also is that really the code you're using, or does your code actually look different?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything