diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-16 18:45:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-16 18:56:59 +0300 |
commit | 42e2398ae35da2b499d18ea589767108bd093687 (patch) | |
tree | 4c3ca671804e785210c6acd6f29c66fe37545fa4 /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | 3f744a16c4ad62855a31151b0ad354519560ddc0 (diff) |
Vertex paint color operations
D2050 by @metaraptor with edits
Adds levels, brightness/contrast, hsv & invert operations.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index b6a7d671882..7e05ab929ae 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -101,6 +101,10 @@ bool ED_wpaint_fill(struct VPaint *wp, struct Object *ob, float paintweight); bool ED_vpaint_smooth(struct Object *ob); +typedef void (*VPaintTransform_Callback)(const float col[3], const void *user_data, float r_col[3]); + +bool ED_vpaint_color_transform(struct Object *ob, VPaintTransform_Callback vpaint_tx_fn, const void *user_data); + void PAINT_OT_weight_paint_toggle(struct wmOperatorType *ot); void PAINT_OT_weight_paint(struct wmOperatorType *ot); void PAINT_OT_weight_set(struct wmOperatorType *ot); |