diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-28 00:21:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-28 15:22:22 +0300 |
commit | e0c1116ce3dfef8415b7a975e82cd1506383ed9c (patch) | |
tree | 5e1aac7b4ed95890e8025ef28ef8147338eeb861 /source/blender/draw/intern/DRW_render.h | |
parent | 2e211d099f8d13b79cdf9057f77532c587311c3d (diff) |
Cleanup: DRW: Rename DRW_STATE_BLEND_* for API clarity
Diffstat (limited to 'source/blender/draw/intern/DRW_render.h')
-rw-r--r-- | source/blender/draw/intern/DRW_render.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/draw/intern/DRW_render.h b/source/blender/draw/intern/DRW_render.h index 9de90dc5491..09144e0ceeb 100644 --- a/source/blender/draw/intern/DRW_render.h +++ b/source/blender/draw/intern/DRW_render.h @@ -336,15 +336,16 @@ typedef enum { DRW_STATE_STENCIL_NEQUAL = (1 << 14), /** Blend state */ - DRW_STATE_ADDITIVE = (1 << 15), + DRW_STATE_BLEND_ADD = (1 << 15), /** Same as additive but let alpha accumulate without premult. */ - DRW_STATE_ADDITIVE_FULL = (1 << 16), - DRW_STATE_BLEND = (1 << 17), + DRW_STATE_BLEND_ADD_FULL = (1 << 16), + /** Standard alpha blending. */ + DRW_STATE_BLEND_ALPHA = (1 << 17), /** Use that if color is already premult by alpha. */ - DRW_STATE_BLEND_PREMUL = (1 << 18), - DRW_STATE_BLEND_PREMUL_UNDER = (1 << 19), + DRW_STATE_BLEND_ALPHA_PREMUL = (1 << 18), + DRW_STATE_BLEND_ALPHA_UNDER_PREMUL = (1 << 19), DRW_STATE_BLEND_OIT = (1 << 20), - DRW_STATE_MULTIPLY = (1 << 21), + DRW_STATE_BLEND_MUL = (1 << 21), DRW_STATE_CLIP_PLANES = (1 << 22), DRW_STATE_WIRE_SMOOTH = (1 << 23), |