Skip to content

Commit 6781b31

Browse files
committed
Add the SDL_BlendFactor enum
1 parent c433b5b commit 6781b31

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

sdlblendmode.inc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,20 @@ const
2424
SDL_BLENDOPERATION_REV_SUBTRACT = $3; {**< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES}
2525
SDL_BLENDOPERATION_MINIMUM = $4; {**< min(dst, src) : supported by D3D11 *}
2626
SDL_BLENDOPERATION_MAXIMUM = $5; {**< max(dst, src) : supported by D3D11 *}
27+
28+
type
29+
PSDL_BlendFactor = ^TSDL_BlendFactor;
30+
TSDL_BlendFactor = DWord;
31+
32+
const
33+
SDL_BLENDFACTOR_ZERO = $1; {**< 0, 0, 0, 0 *}
34+
SDL_BLENDFACTOR_ONE = $2; {**< 1, 1, 1, 1 *}
35+
SDL_BLENDFACTOR_SRC_COLOR = $3; {**< srcR, srcG, srcB, srcA *}
36+
SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR = $4; {**< 1-srcR, 1-srcG, 1-srcB, 1-srcA *}
37+
SDL_BLENDFACTOR_SRC_ALPHA = $5; {**< srcA, srcA, srcA, srcA *}
38+
SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA = $6; {**< 1-srcA, 1-srcA, 1-srcA, 1-srcA *}
39+
SDL_BLENDFACTOR_DST_COLOR = $7; {**< dstR, dstG, dstB, dstA *}
40+
SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR = $8; {**< 1-dstR, 1-dstG, 1-dstB, 1-dstA *}
41+
SDL_BLENDFACTOR_DST_ALPHA = $9; {**< dstA, dstA, dstA, dstA *}
42+
SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA = $A; {**< 1-dstA, 1-dstA, 1-dstA, 1-dstA *}
43+

0 commit comments

Comments
 (0)