Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_intern.h
| Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| void PAINT_OT_weight_gradient(struct wmOperatorType *ot); | void PAINT_OT_weight_gradient(struct wmOperatorType *ot); | ||||
| void PAINT_OT_vertex_paint_toggle(struct wmOperatorType *ot); | void PAINT_OT_vertex_paint_toggle(struct wmOperatorType *ot); | ||||
| void PAINT_OT_vertex_paint(struct wmOperatorType *ot); | void PAINT_OT_vertex_paint(struct wmOperatorType *ot); | ||||
| unsigned int vpaint_get_current_color(struct Scene *scene, struct VPaint *vp, bool secondary); | unsigned int vpaint_get_current_color(struct Scene *scene, struct VPaint *vp, bool secondary); | ||||
| /* paint_vertex_color_utils.c */ | |||||
| /** | /** | ||||
| * \note weight-paint has an equivalent function: #ED_wpaint_blend_tool | * \note weight-paint has an equivalent function: #ED_wpaint_blend_tool | ||||
| */ | */ | ||||
| unsigned int ED_vpaint_blend_tool(int tool, uint col, uint paintcol, int alpha_i); | unsigned int ED_vpaint_blend_tool(int tool, uint col, uint paintcol, int alpha_i); | ||||
| /** | |||||
| * Apply callback to each vertex of the active vertex color layer. | |||||
| */ | |||||
| bool ED_vpaint_color_transform(struct Object *ob, | |||||
| VPaintTransform_Callback vpaint_tx_fn, | |||||
| const void *user_data); | |||||
| /* paint_vertex_weight_utils.c */ | /* paint_vertex_weight_utils.c */ | ||||
| /** | /** | ||||
| * \param weight: Typically the current weight: #MDeformWeight.weight | * \param weight: Typically the current weight: #MDeformWeight.weight | ||||
| * | * | ||||
| * \return The final weight, note that this is _not_ clamped from [0-1]. | * \return The final weight, note that this is _not_ clamped from [0-1]. | ||||
| * Clamping must be done on the final #MDeformWeight.weight | * Clamping must be done on the final #MDeformWeight.weight | ||||
| ▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines | |||||