Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_intern.h
| Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | typedef struct GP_SpaceConversion { | ||||
| rctf *subrect; /* for using the camera rect within the 3d view */ | rctf *subrect; /* for using the camera rect within the 3d view */ | ||||
| rctf subrect_data; | rctf subrect_data; | ||||
| float mat[4][4]; /* transform matrix on the strokes (introduced in [b770964]) */ | float mat[4][4]; /* transform matrix on the strokes (introduced in [b770964]) */ | ||||
| } GP_SpaceConversion; | } GP_SpaceConversion; | ||||
| bool gp_stroke_inside_circle( | bool gp_stroke_inside_circle( | ||||
| const int mval[2], const int UNUSED(mvalo[2]), | const float mval[2], const float UNUSED(mvalo[2]), | ||||
| int rad, int x0, int y0, int x1, int y1); | int rad, int x0, int y0, int x1, int y1); | ||||
| void gp_point_conversion_init(struct bContext *C, GP_SpaceConversion *r_gsc); | void gp_point_conversion_init(struct bContext *C, GP_SpaceConversion *r_gsc); | ||||
| void gp_point_to_xy( | void gp_point_to_xy( | ||||
| const GP_SpaceConversion *gsc, const struct bGPDstroke *gps, const struct bGPDspoint *pt, | const GP_SpaceConversion *gsc, const struct bGPDstroke *gps, const struct bGPDspoint *pt, | ||||
| int *r_x, int *r_y); | int *r_x, int *r_y); | ||||
| Show All 15 Lines | |||||
| /* helper to convert 2d to 3d */ | /* helper to convert 2d to 3d */ | ||||
| void gp_stroke_convertcoords_tpoint( | void gp_stroke_convertcoords_tpoint( | ||||
| struct Scene *scene, struct ARegion *ar, | struct Scene *scene, struct ARegion *ar, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| bGPDlayer *gpl, const struct tGPspoint *point2D, | bGPDlayer *gpl, const struct tGPspoint *point2D, | ||||
| float *depth, float out[3]); | float *depth, float out[3]); | ||||
| /* helper to convert 2d to 3d for primitive. See: D4030 */ | |||||
| void gp_stroke_convertcoords_tpoint_primitive( | |||||
| struct Scene *scene, struct ARegion *ar, | |||||
| struct Object *ob, | |||||
| bGPDlayer *gpl, const struct tPGPspoint *point2D, | |||||
| float out[3]); | |||||
| /* Poll Callbacks ------------------------------------ */ | /* Poll Callbacks ------------------------------------ */ | ||||
| /* gpencil_utils.c */ | /* gpencil_utils.c */ | ||||
| bool gp_add_poll(struct bContext *C); | bool gp_add_poll(struct bContext *C); | ||||
| bool gp_active_layer_poll(struct bContext *C); | bool gp_active_layer_poll(struct bContext *C); | ||||
| bool gp_active_brush_poll(struct bContext *C); | bool gp_active_brush_poll(struct bContext *C); | ||||
| bool gp_brush_crt_presets_poll(bContext *C); | bool gp_brush_crt_presets_poll(bContext *C); | ||||
| ▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines | |||||