CF_BlendFactor¶
Category: graphics
GitHub: cute_graphics.h
Blend factors to compose a blend equation.
Values¶
Enum | Description |
---|---|
BLENDFACTOR_ZERO | 0 |
BLENDFACTOR_ONE | 1 |
BLENDFACTOR_SRC_COLOR | S.color |
BLENDFACTOR_ONE_MINUS_SRC_COLOR | (1 - S.rgb) |
BLENDFACTOR_DST_COLOR | D.rgb |
BLENDFACTOR_ONE_MINUS_DST_COLOR | (1 - D.rgb) |
BLENDFACTOR_SRC_ALPHA | S.alpha |
BLENDFACTOR_ONE_MINUS_SRC_ALPHA | (1 - S.alpha) |
BLENDFACTOR_DST_ALPHA | D.alpha |
BLENDFACTOR_ONE_MINUS_DST_ALPHA | (1 - D.alpha) |
BLENDFACTOR_CONSTANT_COLOR | C |
BLENDFACTOR_ONE_MINUS_CONSTANT_COLOR | (1 - C.rgb) |
BLENDFACTOR_SRC_ALPHA_SATURATE | min(S.alpha, 1 - D.alpha) |
Remarks¶
See CF_BlendState for an overview.