SFML community forums

Help => Graphics => Topic started by: mongrol on February 14, 2010, 05:00:48 am

Title: Alpha question
Post by: mongrol on February 14, 2010, 05:00:48 am
This is probably a bit of a n00b question but I'm a bit confused after some tests. I have a png sprite, on top of that I have another png sprite that's a Crosshair. This crosshair is basically a red box with a transparent background. When I render the crosshair over the background the red bit is partially see through and appears blended in some manner. The rest of the alpha channel is 100% clear which is correct. Does this mean the alpha channel under the red bit is set at 50% or something? How do I mask it off completely and only allow just the "erased" bit of my image to show through?

I've been using Acorn to draw the images.
Title: Alpha question
Post by: mongrol on February 14, 2010, 06:55:50 am
Solved. image.SetSmooth(false).