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

Author Topic: Capturing Texture from a Specific Part in a RenderWindow  (Read 1013 times)

0 Members and 1 Guest are viewing this topic.

tatatox80

  • Newbie
  • *
  • Posts: 1
    • View Profile
Capturing Texture from a Specific Part in a RenderWindow
« on: May 11, 2015, 03:05:15 am »
Hi!

I'm relatively new to SFML and I just need to know if there's any way to load an sf::Texture from a specific region in a window (rectangular region).

All the best!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11004
    • View Profile
    • development blog
    • Email
AW: Capturing Texture from a Specific Part in a RenderWindow
« Reply #1 on: May 11, 2015, 07:15:32 am »
Use a render texture and assign it to a sprite with the right texture rectangle.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything