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

Author Topic: sf::RenderTexture repeated  (Read 1549 times)

0 Members and 1 Guest are viewing this topic.

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
sf::RenderTexture repeated
« on: January 31, 2013, 04:16:33 pm »
Hi,
I was working with sf::RenderTextures yesterday and I noticed that they don't have a setRepeat() method. Is this a bug or is there a reason why it's left out?
« Last Edit: January 31, 2013, 04:25:43 pm by Foaly »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: sf::RenderTexture repeated
« Reply #1 on: January 31, 2013, 04:46:10 pm »
It's a bug, it will be added soon.
Laurent Gomila - SFML developer

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: sf::RenderTexture repeated
« Reply #2 on: March 06, 2013, 10:50:49 pm »
Since I needed renderTextures to repeat for my project, I forked SFML and fixed the problem. It's very simple fix, but I though I should share it. I made a pull request on github: https://github.com/SFML/SFML/pull/363

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: sf::RenderTexture repeated
« Reply #3 on: March 06, 2013, 10:55:13 pm »
Thank you :)
Laurent Gomila - SFML developer

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: sf::RenderTexture repeated
« Reply #4 on: March 06, 2013, 10:57:36 pm »
Wow that was super fast! Awesome.
No Problem. I'm glad i could help/contribute! :)

 

anything