Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_intern.h
| Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| void gpencil_point_to_xy_fl(const GP_SpaceConversion *gsc, | void gpencil_point_to_xy_fl(const GP_SpaceConversion *gsc, | ||||
| const bGPDstroke *gps, | const bGPDstroke *gps, | ||||
| const bGPDspoint *pt, | const bGPDspoint *pt, | ||||
| float *r_x, | float *r_x, | ||||
| float *r_y); | float *r_y); | ||||
| /** | /** | ||||
| * Convert point to parent space | * Convert point to world space | ||||
| * | * | ||||
| * \param pt: Original point | * \param pt: Original point | ||||
| * \param diff_mat: Matrix with the difference between original parent matrix | * \param diff_mat: Matrix with the transformation | ||||
| * \param[out] r_pt: Pointer to new point after apply matrix | * \param[out] r_pt: Pointer to new point after apply matrix | ||||
| */ | */ | ||||
| void gpencil_point_to_parent_space(const bGPDspoint *pt, | void gpencil_point_to_world_space(const bGPDspoint *pt, | ||||
| const float diff_mat[4][4], | const float diff_mat[4][4], | ||||
| bGPDspoint *r_pt); | bGPDspoint *r_pt); | ||||
| /** | /** | ||||
| * Change points position relative to parent object | * Change points position relative to parent object | ||||
| */ | */ | ||||
| /** | /** | ||||
| * Change position relative to parent object | * Change position relative to parent object | ||||
| */ | */ | ||||
| void gpencil_apply_parent(struct Depsgraph *depsgraph, | void gpencil_world_to_object_space(struct Depsgraph *depsgraph, | ||||
| struct Object *obact, | struct Object *obact, | ||||
| bGPDlayer *gpl, | bGPDlayer *gpl, | ||||
| bGPDstroke *gps); | bGPDstroke *gps); | ||||
| /** | /** | ||||
| * Change point position relative to parent object | * Change point position relative to parent object | ||||
| */ | */ | ||||
| /** | /** | ||||
| * Change point position relative to parent object | * Change point position relative to parent object | ||||
| */ | */ | ||||
| void gpencil_apply_parent_point(struct Depsgraph *depsgraph, | void gpencil_world_to_object_space_point(struct Depsgraph *depsgraph, | ||||
| struct Object *obact, | struct Object *obact, | ||||
| bGPDlayer *gpl, | bGPDlayer *gpl, | ||||
| bGPDspoint *pt); | bGPDspoint *pt); | ||||
| /** | /** | ||||
| * generic based on gpencil_point_to_xy_fl | * generic based on gpencil_point_to_xy_fl | ||||
| */ | */ | ||||
| void gpencil_point_3d_to_xy(const GP_SpaceConversion *gsc, | void gpencil_point_3d_to_xy(const GP_SpaceConversion *gsc, | ||||
| short flag, | short flag, | ||||
| const float pt[3], | const float pt[3], | ||||
| float xy[2]); | float xy[2]); | ||||
| ▲ Show 20 Lines • Show All 523 Lines • Show Last 20 Lines | |||||