Sutractive Blending

Here are the blend modes that SDL has / supports: https://wiki.libsdl.org/SDL_BlendMode

Here are the blend modes that SDL2 has / supports: https://wiki.libsdl.org/SDL_BlendMode

BadManiac wrote:

More than 750 views and no answers? Clearly quite a few people are interested in this, so has anyone done it?

I think many people expecting that you’re proposing new feature with a patch included :-).

Anyway I think there is no support for that blend mode currently. You might have to implement yourself (with the backend that you’re using, eg. OpenGL).

Just be careful.? A while back I tried doing exactly that.? The response I got: Implement it for all renderers and we’ll look at putting it in.? As if I’m supposed to know how to do that for other renderers I’ve never worked with.? (Not to mention in software!)On Thursday, August 21, 2014 3:14 AM, mr_tawan <mr_tawan at hotmail.com> wrote:

BadManiac wrote:
More than 750 views and no answers? Clearly quite a few people are interested in this, so has anyone done it?

I think many people expecting that you’re proposing new feature with a patch included .

Anyway I think there is no support for that blend mode currently. You might have to implement yourself (with the backend that you’re using, eg. OpenGL).


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

If there’s a bug report for this, then others can contribute patches for
each renderer separately.

Jonny DOn Thu, Aug 21, 2014 at 2:55 PM, Mason Wheeler wrote:

Just be careful. A while back I tried doing exactly that. The response I
got: Implement it for all renderers and we’ll look at putting it in. As if
I’m supposed to know how to do that for other renderers I’ve never worked
with. (Not to mention in software!)

On Thursday, August 21, 2014 3:14 AM, mr_tawan <mr_tawan at hotmail.com> wrote:

BadManiac wrote: More than 750 views and no answers? Clearly quite a
few people are interested in this, so has anyone done it?

I think many people expecting that you’re proposing new feature with a
patch included [image: Smile].

Anyway I think there is no support for that blend mode currently. You
might have to implement yourself (with the backend that you’re using, eg.
OpenGL).


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org