diff options
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r-- | source/blender/draw/DRW_engine.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h index 9ed8f776f34..4043f39b46d 100644 --- a/source/blender/draw/DRW_engine.h +++ b/source/blender/draw/DRW_engine.h @@ -88,6 +88,11 @@ typedef struct DRWUpdateContext { void DRW_notify_view_update(const DRWUpdateContext *update_ctx); void DRW_notify_id_update(const DRWUpdateContext *update_ctx, struct ID *id); + +typedef enum eDRWSelectStage { DRW_SELECT_PASS_PRE = 1, DRW_SELECT_PASS_POST, } eDRWSelectStage; +typedef bool (*DRW_SelectPassFn)( + eDRWSelectStage stage, void *user_data); + void DRW_draw_view(const struct bContext *C); void DRW_draw_render_loop_ex( @@ -108,7 +113,8 @@ void DRW_draw_render_loop_offscreen( void DRW_draw_select_loop( struct Depsgraph *depsgraph, struct ARegion *ar, struct View3D *v3d, const eObjectMode object_mode, - bool use_obedit_skip, bool use_nearest, const struct rcti *rect); + bool use_obedit_skip, bool use_nearest, const struct rcti *rect, + DRW_SelectPassFn select_pass_fn, void *select_pass_user_data); void DRW_draw_depth_loop( struct Depsgraph *depsgraph, struct ARegion *ar, struct View3D *v3d, const eObjectMode object_mode); |