Hello,
How do I render an image that has RGBA values? I would like to utilize the transparency i created in my paint program, but i am unsure how to use OpenGL. I know that there is a blend mode, and that utilization of OpenGL is simple in SFML since OpenGL is the backend, but i'm not sure which blend mode, or which function i should use.
I added this code after the ceation of my window:
sf::RenderWindow window(sf::VideoMode(800, 600, 32), "SFML works!");
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_DST_COLOR);
window.pushGLStates();
If somebody has a link to a tutorial that would be awesome as I don't even know what this is called.