Wiki Page Content

Differences between revisions 8 and 9
Revision 8 as of 2010-12-13 17:29:44
Size: 859
Editor: SheenaSmith
Comment: update content - changeset 4929; minor change w/ creation of SDL_blendmode.h
Revision 9 as of 2010-12-14 00:35:24
Size: 921
Editor: SheenaSmith
Comment: update content - add RFs
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
 .[[SDL_GetSurfaceBlendMode]]
Line 32: Line 33:
 .[[SDL_SetSurfaceBlendMode]]

SDL_BlendMode

An enumeration of blend modes used in SDL_RenderCopy() and drawing operations.

Values

SDL_BLENDMODE_NONE

no blending

SDL_BLENDMODE_MASK

dst = A ? src : dst (alpha is mask)

SDL_BLENDMODE_BLEND

dst = (src * A) + (dst * (1-A))

SDL_BLENDMODE_ADD

dst = (src * A) + dst

SDL_BLENDMODE_MOD

dst = src * dst

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryEnum, CategoryVideo

None: SDL_BlendMode (last edited 2013-08-08 20:57:51 by Sam Lantinga)

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