Skip to content

Commit c433b5b

Browse files
committed
Add the SDL_BlendOperation enum
1 parent 58f6ccd commit c433b5b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sdlblendmode.inc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ const
1313
SDL_BLENDMODE_BLEND = $00000001; {**< dst = (src * A) + (dst * (1-A)) *}
1414
SDL_BLENDMODE_ADD = $00000002; {**< dst = (src * A) + dst *}
1515
SDL_BLENDMODE_MOD = $00000004; {**< dst = src * dst *}
16+
17+
type
18+
PSDL_BlendOperation = ^TSDL_BlendOperation;
19+
TSDL_BlendOperation = DWord;
20+
21+
const
22+
SDL_BLENDOPERATION_ADD = $1; {**< dst + src: supported by all renderers *}
23+
SDL_BLENDOPERATION_SUBTRACT = $2; {**< dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES}
24+
SDL_BLENDOPERATION_REV_SUBTRACT = $3; {**< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES}
25+
SDL_BLENDOPERATION_MINIMUM = $4; {**< min(dst, src) : supported by D3D11 *}
26+
SDL_BLENDOPERATION_MAXIMUM = $5; {**< max(dst, src) : supported by D3D11 *}

0 commit comments

Comments
 (0)