Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2017-09-27 09:49:37
Size: 1560
Editor: ChliHug
Comment: Created page with content from header file.
Revision 2 as of 2017-09-27 15:58:37
Size: 1561
Editor: ChliHug
Comment: Changed category from Categoryvideo to CategoryRender, as this only works with renderers currently.
Deletions are marked like this. Additions are marked like this.
Line 46: Line 46:
[[CategoryEnum]], [[CategoryVideo]] [[CategoryEnum]], [[CategoryRender]]

DRAFT

SDL_BlendOperation

An enumeration of blend operations used when creating a custom blend mode with SDL_ComposeCustomBlendMode().

Values

SDL_BLENDOPERATION_ADD

additive operation

dst + src

SDL_BLENDOPERATION_SUBTRACT

subtractive operation

dst - src

SDL_BLENDOPERATION_REV_SUBTRACT

reversed subtractive operation

src - dst

SDL_BLENDOPERATION_MINIMUM

minimum operation

min(dst, src)

SDL_BLENDOPERATION_MAXIMUM

maximum operation

max(dst, src)

Code Examples

You can add your code example here

Remarks

The blend operation takes place when the calculated pixels from a drawing operation (src) and the pixels from the render target (dst) get combined. Each component (red, green, blue, and alpha) is calculated separately. The result is then stored in the render target.

Some renderers may not support all operations. See SDL_ComposeCustomBlendMode() for a list of what the current renderers support.

Version

This enumeration is available since SDL 2.0.6.


CategoryEnum, CategoryRender

None: SDL_BlendOperation (last edited 2017-09-27 15:58:37 by ChliHug)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit