Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_intern.h
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| * code (in drawgpencil.c). | * code (in drawgpencil.c). | ||||
| * | * | ||||
| * NOTE: All this is within the gpencil module, so nothing needs | * NOTE: All this is within the gpencil module, so nothing needs | ||||
| * to be exported to other modules. | * to be exported to other modules. | ||||
| */ | */ | ||||
| /* Internal Operator-State Data ------------------------ */ | /* Internal Operator-State Data ------------------------ */ | ||||
| /** Random settings by stroke */ | |||||
| typedef struct GpRandomSettings { | |||||
| /** Pressure used for evaluated curves. */ | |||||
| float pen_press; | |||||
| float hsv[3]; | |||||
| float pressure; | |||||
| float strength; | |||||
| float uv; | |||||
| } GpRandomSettings; | |||||
| /* Temporary draw data (no draw manager mode) */ | /* Temporary draw data (no draw manager mode) */ | ||||
| typedef struct tGPDdraw { | typedef struct tGPDdraw { | ||||
| struct RegionView3D *rv3d; /* region to draw */ | struct RegionView3D *rv3d; /* region to draw */ | ||||
| struct Depsgraph *depsgraph; /* depsgraph */ | struct Depsgraph *depsgraph; /* depsgraph */ | ||||
| struct Object *ob; /* GP object */ | struct Object *ob; /* GP object */ | ||||
| struct bGPdata *gpd; /* current GP datablock */ | struct bGPdata *gpd; /* current GP datablock */ | ||||
| struct bGPDlayer *gpl; /* layer */ | struct bGPDlayer *gpl; /* layer */ | ||||
| struct bGPDframe *gpf; /* frame */ | struct bGPDframe *gpf; /* frame */ | ||||
| ▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | typedef struct tGPDprimitive { | ||||
| int lock_axis; | int lock_axis; | ||||
| struct RNG *rng; | struct RNG *rng; | ||||
| /** numeric input */ | /** numeric input */ | ||||
| NumInput num; | NumInput num; | ||||
| /** size in pixels for uv calculation */ | /** size in pixels for uv calculation */ | ||||
| float totpixlen; | float totpixlen; | ||||
| /** Random settings by stroke */ | |||||
| GpRandomSettings random_settings; | |||||
| } tGPDprimitive; | } tGPDprimitive; | ||||
| /* Modal Operator Drawing Callbacks ------------------------ */ | /* Modal Operator Drawing Callbacks ------------------------ */ | ||||
| void ED_gp_draw_fill(struct tGPDdraw *tgpw); | void ED_gp_draw_fill(struct tGPDdraw *tgpw); | ||||
| /* ***************************************************** */ | /* ***************************************************** */ | ||||
| /* Internal API */ | /* Internal API */ | ||||
| ▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines | |||||