diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_gpencil.h')
-rw-r--r-- | source/blender/blenkernel/BKE_gpencil.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index d09917a9e41..21356db8abf 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -125,6 +125,12 @@ struct bGPDstroke *BKE_gpencil_add_stroke(struct bGPDframe *gpf, int totpoints, short thickness); +struct bGPDstroke *BKE_gpencil_add_stroke_existing_style(struct bGPDframe *gpf, + struct bGPDstroke *existing, + int mat_idx, + int totpoints, + short thickness); + /* Stroke and Fill - Alpha Visibility Threshold */ #define GPENCIL_ALPHA_OPACITY_THRESH 0.001f #define GPENCIL_STRENGTH_MIN 0.003f @@ -238,6 +244,18 @@ bool BKE_gpencil_smooth_stroke_uv(struct bGPDstroke *gps, int point_index, float bool BKE_gpencil_close_stroke(struct bGPDstroke *gps); void BKE_gpencil_dissolve_points(struct bGPDframe *gpf, struct bGPDstroke *gps, const short tag); +bool BKE_gpencil_stretch_stroke(struct bGPDstroke *gps, const float dist, const float tip_length); +bool BKE_gpencil_trim_stroke_points(struct bGPDstroke *gps, + const int index_from, + const int index_to); +bool BKE_gpencil_split_stroke(struct bGPDframe *gpf, + struct bGPDstroke *gps, + const int before_index, + struct bGPDstroke **remaining_gps); +bool BKE_gpencil_shrink_stroke(struct bGPDstroke *gps, const float dist); + +float BKE_gpencil_stroke_length(const struct bGPDstroke *gps, bool use_3d); + void BKE_gpencil_get_range_selected(struct bGPDlayer *gpl, int *r_initframe, int *r_endframe); float BKE_gpencil_multiframe_falloff_calc( struct bGPDframe *gpf, int actnum, int f_init, int f_end, struct CurveMapping *cur_falloff); |