Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Capturing Texture from a Specific Part in a RenderWindow
Print
Pages: [
1
]
Author
Topic: Capturing Texture from a Specific Part in a RenderWindow (Read 1065 times)
0 Members and 1 Guest are viewing this topic.
tatatox80
Newbie
Posts: 1
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!
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Capturing Texture from a Specific Part in a RenderWindow
anything