Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add color blending modes to sf::BlendMode #1503

Open
FRex opened this issue Oct 25, 2018 · 0 comments
Open

Add color blending modes to sf::BlendMode #1503

FRex opened this issue Oct 25, 2018 · 0 comments

Comments

@FRex
Copy link
Contributor

FRex commented Oct 25, 2018

So the idea of 'supporting color blending' came up on the forum: https://en.sfml-dev.org/forums/index.php?topic=24653

There is apparently one 'blend color' set by glBlendColor. It then gets used by some blending factors. Relevant ones are GL_CONSTANT_COLOR and probably/maybe also GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA and GL_ONE_MINUS_CONSTANT_ALPHA.

It should be easy enough to implement. Add an sf::Color field to sf::BlendMode, add 1-4 relevant enums, add/change caching and applying the sf::BlendMode in sf::RenderTarget.

@cier cier mentioned this issue Oct 26, 2018
5 tasks
@eXpl0it3r eXpl0it3r added this to Discussion in SFML 2.6.0 via automation Nov 26, 2018
@eXpl0it3r eXpl0it3r added this to the 2.6 milestone Nov 26, 2018
@eXpl0it3r eXpl0it3r moved this from Discussion to Review & Testing in SFML 2.6.0 Sep 3, 2019
@eXpl0it3r eXpl0it3r removed this from Review & Testing in SFML 2.6.0 Feb 3, 2020
@eXpl0it3r eXpl0it3r removed this from the 2.6 milestone Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants