SFML community forums

Help => Graphics => Topic started by: vynokris on February 19, 2021, 12:25:04 pm

Title: Change the blend mode used by Texture::update
Post 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.
Title: Re: Change the blend mode used by Texture::update
Post by: G. on February 19, 2021, 02:00:43 pm
You don't. Update replaces pixels by other pixels.

If you want to draw a texture onto another texture, use an sf::RenderTexture.