Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_gpencil.h
| Show All 34 Lines | |||||
| struct Brush; | struct Brush; | ||||
| struct GP_SpaceConversion; | struct GP_SpaceConversion; | ||||
| struct bGPDframe; | struct bGPDframe; | ||||
| struct bGPDlayer; | struct bGPDlayer; | ||||
| struct bGPDspoint; | struct bGPDspoint; | ||||
| struct bGPDstroke; | struct bGPDstroke; | ||||
| struct bGPdata; | struct bGPdata; | ||||
| struct tGPspoint; | struct tGPspoint; | ||||
| struct GpRandomSettings; | |||||
| struct ARegion; | struct ARegion; | ||||
| struct Depsgraph; | struct Depsgraph; | ||||
| struct Main; | struct Main; | ||||
| struct RegionView3D; | struct RegionView3D; | ||||
| struct ReportList; | struct ReportList; | ||||
| struct Scene; | struct Scene; | ||||
| struct ScrArea; | struct ScrArea; | ||||
| struct SnapObjectContext; | |||||
| struct ToolSettings; | struct ToolSettings; | ||||
| struct View3D; | struct View3D; | ||||
| struct ViewLayer; | struct ViewLayer; | ||||
| struct bContext; | struct bContext; | ||||
| struct Material; | struct Material; | ||||
| struct Object; | struct Object; | ||||
| struct KeyframeEditData; | struct KeyframeEditData; | ||||
| struct bAnimContext; | struct bAnimContext; | ||||
| struct wmKeyConfig; | struct wmKeyConfig; | ||||
| struct wmOperator; | struct wmOperator; | ||||
| /* ------------- Grease-Pencil Runtime Data ---------------- */ | /* ------------- Grease-Pencil Runtime Data ---------------- */ | ||||
| /* Temporary 'Stroke Point' data (2D / screen-space) | /* Temporary 'Stroke Point' data (2D / screen-space) | ||||
| * | * | ||||
| * Used as part of the 'stroke cache' used during drawing of new strokes | * Used as part of the 'stroke cache' used during drawing of new strokes | ||||
| */ | */ | ||||
| typedef struct tGPspoint { | typedef struct tGPspoint { | ||||
| float x, y; /* x and y coordinates of cursor (in relative to area) */ | float x, y; /* x and y coordinates of cursor (in relative to area) */ | ||||
| float pressure; /* pressure of tablet at this point */ | float pressure; /* pressure of tablet at this point */ | ||||
| float strength; /* pressure of tablet at this point for alpha factor */ | float strength; /* pressure of tablet at this point for alpha factor */ | ||||
| float time; /* Time relative to stroke start (used when converting to path) */ | float time; /* Time relative to stroke start (used when converting to path) */ | ||||
| float uv_fac; /* factor of uv along the stroke */ | float uv_fac; /* factor of uv along the stroke */ | ||||
| float uv_rot; /* uv rotation for dor mode */ | float uv_rot; /* uv rotation for dor mode */ | ||||
| float rnd[3]; /* rnd value */ | float rnd[3]; /* rnd value */ | ||||
| bool rnd_dirty; /* rnd flag */ | bool rnd_dirty; /* rnd flag */ | ||||
| float vert_color[4]; /* Point vertex color. */ | |||||
| } tGPspoint; | } tGPspoint; | ||||
| /* ----------- Grease Pencil Tools/Context ------------- */ | /* ----------- Grease Pencil Tools/Context ------------- */ | ||||
| /* Context-dependent */ | /* Context-dependent */ | ||||
| struct bGPdata **ED_gpencil_data_get_pointers(const struct bContext *C, struct PointerRNA *r_ptr); | struct bGPdata **ED_gpencil_data_get_pointers(const struct bContext *C, struct PointerRNA *r_ptr); | ||||
| struct bGPdata *ED_gpencil_data_get_active(const struct bContext *C); | struct bGPdata *ED_gpencil_data_get_active(const struct bContext *C); | ||||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | |||||
| void ED_gpencil_tag_scene_gpencil(struct Scene *scene); | void ED_gpencil_tag_scene_gpencil(struct Scene *scene); | ||||
| /* Vertex color set. */ | /* Vertex color set. */ | ||||
| void ED_gpencil_fill_vertex_color_set(struct ToolSettings *ts, | void ED_gpencil_fill_vertex_color_set(struct ToolSettings *ts, | ||||
| struct Brush *brush, | struct Brush *brush, | ||||
| struct bGPDstroke *gps); | struct bGPDstroke *gps); | ||||
| void ED_gpencil_point_vertex_color_set(struct ToolSettings *ts, | void ED_gpencil_point_vertex_color_set(struct ToolSettings *ts, | ||||
| struct Brush *brush, | struct Brush *brush, | ||||
| struct bGPDspoint *pt); | struct bGPDspoint *pt, | ||||
| struct tGPspoint *tpt); | |||||
| void ED_gpencil_sbuffer_vertex_color_set(struct Depsgraph *depsgraph, | void ED_gpencil_sbuffer_vertex_color_set(struct Depsgraph *depsgraph, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| struct ToolSettings *ts, | struct ToolSettings *ts, | ||||
| struct Brush *brush, | struct Brush *brush, | ||||
| struct Material *material); | struct Material *material, | ||||
| float random_color[3], | |||||
| float pen_pressure); | |||||
| void ED_gpencil_init_random_settings(struct Brush *brush, | |||||
| const int mval[2], | |||||
| struct GpRandomSettings *random_settings); | |||||
| bool ED_gpencil_stroke_check_collision(struct GP_SpaceConversion *gsc, | bool ED_gpencil_stroke_check_collision(struct GP_SpaceConversion *gsc, | ||||
| struct bGPDstroke *gps, | struct bGPDstroke *gps, | ||||
| float mouse[2], | float mouse[2], | ||||
| const int radius, | const int radius, | ||||
| const float diff_mat[4][4]); | const float diff_mat[4][4]); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __ED_GPENCIL_H__ */ | #endif /* __ED_GPENCIL_H__ */ | ||||