1
Graphics / Re: Need some help with primitives please!!!
« on: March 13, 2014, 10:57:08 am »Keep the original alpha, just replace RGB channels.
Silly Me!!
Should of realized to keep the original alpha channel
Thanks.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Keep the original alpha, just replace RGB channels.
If the replacement pixels are available as a simple pixel array, then use this overload of Texture::update.
Ok, so that should be easy to do if you have the texture and area to modify. What's your problem exactly?
You can't directly change the contents (glyph, texture) of a sf::Font. You must write your own custom font class.
I'm fairly certain they have an explanation of how to do this in the SFML tutorial section under "Texts and fonts"(http://www.sfml-dev.org/tutorials/2.1/graphics-text.php). Unless you need to do something different, of course.