al_set_separate_blender
void al_set_separate_blender(int op, int src, int dst,
int alpha_op, int alpha_src, int alpha_dst)
Introduced in 5.0.0
Like al_set_blender, but allows specifying a separate blending operation for the alpha channel. This is useful if your target bitmap also has an alpha channel and the two alpha channels need to be combined in a different way than the color components.
See also: al_set_blender, al_get_blender, al_get_separate_blender
Examples: ex_blend2, ex_blend_test, ex_logo
Most helpful discussions:
- [A5] Masked drawing? (1)
- Blend mode copying DESTINATION alpha? (1)
- Color Condundrum
- How to draw pixels of bitmaps transparently upon collision
- What's the blending mode settings for write alpha?
- Mask / combine bitmaps
- al_set_separate_blender() help
- Subtractive Blending
- "Average" blending
- Can't make bitmap tinted
Other recent discussions: