Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_gpencil_geom.h
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | void BKE_gpencil_stroke_2d_flat_ref(const struct bGPDspoint *ref_points, | ||||
| const float scale, | const float scale, | ||||
| int *r_direction); | int *r_direction); | ||||
| void BKE_gpencil_stroke_fill_triangulate(struct bGPDstroke *gps); | void BKE_gpencil_stroke_fill_triangulate(struct bGPDstroke *gps); | ||||
| void BKE_gpencil_stroke_geometry_update(struct bGPDstroke *gps); | void BKE_gpencil_stroke_geometry_update(struct bGPDstroke *gps); | ||||
| void BKE_gpencil_stroke_uv_update(struct bGPDstroke *gps); | void BKE_gpencil_stroke_uv_update(struct bGPDstroke *gps); | ||||
| void BKE_gpencil_transform(struct bGPdata *gpd, float mat[4][4]); | void BKE_gpencil_transform(struct bGPdata *gpd, float mat[4][4]); | ||||
| typedef struct GPencilPointCoordinates { | |||||
| /* This is used when doing "move only origin" in object_data_transform.c. | |||||
| * pressure is needs to be stored here as it is tied to object scale. */ | |||||
| float co[3]; | |||||
| float pressure; | |||||
| } GPencilPointCoordinates; | |||||
| int BKE_gpencil_stroke_point_count(struct bGPdata *gpd); | |||||
| void BKE_gpencil_point_coords_get(struct bGPdata *gpd, GPencilPointCoordinates *elem_data); | |||||
| void BKE_gpencil_point_coords_apply(struct bGPdata *gpd, const GPencilPointCoordinates *elem_data); | |||||
| void BKE_gpencil_point_coords_apply_with_mat4(struct bGPdata *gpd, | |||||
| const GPencilPointCoordinates *elem_data, | |||||
| const float mat[4][4]); | |||||
| bool BKE_gpencil_stroke_sample(struct bGPDstroke *gps, const float dist, const bool select); | bool BKE_gpencil_stroke_sample(struct bGPDstroke *gps, const float dist, const bool select); | ||||
| bool BKE_gpencil_stroke_smooth(struct bGPDstroke *gps, int i, float inf); | bool BKE_gpencil_stroke_smooth(struct bGPDstroke *gps, int i, float inf); | ||||
| bool BKE_gpencil_stroke_smooth_strength(struct bGPDstroke *gps, int point_index, float influence); | bool BKE_gpencil_stroke_smooth_strength(struct bGPDstroke *gps, int point_index, float influence); | ||||
| bool BKE_gpencil_stroke_smooth_thickness(struct bGPDstroke *gps, int point_index, float influence); | bool BKE_gpencil_stroke_smooth_thickness(struct bGPDstroke *gps, int point_index, float influence); | ||||
| bool BKE_gpencil_stroke_smooth_uv(struct bGPDstroke *gps, int point_index, float influence); | bool BKE_gpencil_stroke_smooth_uv(struct bGPDstroke *gps, int point_index, float influence); | ||||
| bool BKE_gpencil_stroke_close(struct bGPDstroke *gps); | bool BKE_gpencil_stroke_close(struct bGPDstroke *gps); | ||||
| void BKE_gpencil_dissolve_points(struct bGPDframe *gpf, struct bGPDstroke *gps, const short tag); | void BKE_gpencil_dissolve_points(struct bGPDframe *gpf, struct bGPDstroke *gps, const short tag); | ||||
| Show All 30 Lines | |||||