diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-07 16:01:58 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-07 18:00:10 +0300 |
commit | 29c650c3cc6b2f80b474705a28e572580288c97f (patch) | |
tree | c91a6b79c03fa04d2008cf86f878e065aa52c809 /source/blender/draw/intern/draw_manager_data.c | |
parent | 6c2588761c14c8d3d337c3087feeec5a45c501ff (diff) |
DRW: Add DRW_pass_state_add and DRW_pass_state_remove
Diffstat (limited to 'source/blender/draw/intern/draw_manager_data.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_data.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index b11455ead49..26b4e23faf1 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -875,6 +875,16 @@ void DRW_pass_state_set(DRWPass *pass, DRWState state) pass->state = state; } +void DRW_pass_state_add(DRWPass *pass, DRWState state) +{ + pass->state |= state; +} + +void DRW_pass_state_remove(DRWPass *pass, DRWState state) +{ + pass->state &= ~state; +} + void DRW_pass_free(DRWPass *pass) { pass->shgroups.first = NULL; |