SFML community forums
Help => Graphics => Topic started by: vynokris on February 19, 2021, 12:25:04 pm
-
Hello,
I am trying to use the function Texture::update to paste a texture onto another. However, right now, all the pixels get pasted even though some are transparent. How do I change this so that transparent pixels do not get pasted ?
Thanks in advance.
-
You don't. Update replaces pixels by other pixels.
If you want to draw a texture onto another texture, use an sf::RenderTexture.