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

More blending modes #298

LaurentGomila opened this Issue Oct 8, 2012 · 1 comment


None yet
3 participants

LaurentGomila commented Oct 8, 2012

Additional blending modes are often requested.

Two solutions:

  • add more blending modes to the sf::BlendMode enumeration
  • make the API more flexible, allow to set source and destination operators instead of a fixed list of modes

A blending mode which is often requested is premultiplied alpha (which would come with a sf::Image::convertToPremultipliedAlpha function).

Forum topics:

@ghost ghost assigned LaurentGomila Oct 8, 2012

tomgalvin594 added a commit to tomgalvin594/SFML that referenced this issue Jan 21, 2014

@Bromeon Bromeon assigned Bromeon and unassigned LaurentGomila Feb 23, 2014


This comment has been minimized.


Bromeon commented Feb 23, 2014

A possible API is discussed in the forum, please refer to this thread (don't discuss here):

@Bromeon Bromeon modified the milestones: 2.2, 2.x Feb 26, 2014

tomgalvin594 added a commit to tomgalvin594/SFML that referenced this issue Mar 5, 2014

Bromeon added a commit that referenced this issue Mar 9, 2014

Created branch for experimental blending mode API
See issue #298.
Based on branch 'new_blending_api' of

@Bromeon Bromeon closed this in 951b774 Apr 26, 2014

@eXpl0it3r eXpl0it3r added the s:accepted label Jul 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment