Im trying to create a simple splash screen which:
1. loads an image (.png that has transparent parts)
2. renders the image and its transparency by itself (no window, titlebar, etc)
My image.png loads fine but the transparency isn't transferring over to the window.
ie. If I load 2 images and position one behind the image with transparency. The second image is shown through the transparent parts of the first image.
If I load the single transparent image and render it my desktop and other windows behind the RenderWindow aren't showing through the image's transparent parts.
It just displays black in those areas.
I have the clear color set to (0, 0, 0, 0), so it has a 0 alpha channel but its not as simple as that.
Im not sure if what Im wanting is even possible.
My code:
// Inside int main()
splashWindow.create(sf::VideoMode(splashTextureSize.x, splashTextureSize.y, 32),
"None",
sf::Style::None);
splashWindow.clear(sf::Color(0, 0, 0, 0));
splashWindow.draw(splashSprite);
splashWindow.display();
splashShprite is the .png image which contains transparent sections.
Ive also tried messing with different ContextSettings (using different gl versions from 2.0 to 4.3) to no avail.
Any Ideas,
Thanks in advance!