Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_brush_types.h
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | typedef struct BrushGpencilSettings { | ||||
| char _pad[4]; | char _pad[4]; | ||||
| /** Factor for transparency. */ | /** Factor for transparency. */ | ||||
| float fill_threshold; | float fill_threshold; | ||||
| /** Number of pixel to consider the leak is too small (x 2). */ | /** Number of pixel to consider the leak is too small (x 2). */ | ||||
| short fill_leak; | short fill_leak; | ||||
| /** Fill zoom factor */ | /** Fill zoom factor */ | ||||
| short fill_factor; | short fill_factor; | ||||
| char _pad1[4]; | int flag2; | ||||
| /** Number of simplify steps. */ | /** Number of simplify steps. */ | ||||
| int fill_simplylvl; | int fill_simplylvl; | ||||
| /** Type of control lines drawing mode. */ | /** Type of control lines drawing mode. */ | ||||
| int fill_draw_mode; | int fill_draw_mode; | ||||
| /** Icon identifier. */ | /** Icon identifier. */ | ||||
| int icon_id; | int icon_id; | ||||
| Show All 26 Lines | typedef struct BrushGpencilSettings { | ||||
| int vertex_mode; | int vertex_mode; | ||||
| /** eGP_Sculpt_Flag. */ | /** eGP_Sculpt_Flag. */ | ||||
| int sculpt_flag; | int sculpt_flag; | ||||
| /** eGP_Sculpt_Mode_Flag. */ | /** eGP_Sculpt_Mode_Flag. */ | ||||
| int sculpt_mode_flag; | int sculpt_mode_flag; | ||||
| /** Preset type (used to reset brushes - internal). */ | /** Preset type (used to reset brushes - internal). */ | ||||
| short preset_type; | short preset_type; | ||||
| char _pad3[6]; | char _pad3[2]; | ||||
| /** Randomness for Hue. */ | |||||
| float random_hue; | |||||
| /** Randomness for Saturation. */ | |||||
| float random_saturation; | |||||
| /** Randomness for Value. */ | |||||
| float random_value; | |||||
| struct CurveMapping *curve_sensitivity; | struct CurveMapping *curve_sensitivity; | ||||
| struct CurveMapping *curve_strength; | struct CurveMapping *curve_strength; | ||||
| struct CurveMapping *curve_jitter; | struct CurveMapping *curve_jitter; | ||||
| struct CurveMapping *curve_rand_pressure; | |||||
| struct CurveMapping *curve_rand_strength; | |||||
| struct CurveMapping *curve_rand_uv; | |||||
| struct CurveMapping *curve_rand_hue; | |||||
| struct CurveMapping *curve_rand_saturation; | |||||
| struct CurveMapping *curve_rand_value; | |||||
| /* optional link of material to replace default in context */ | /* optional link of material to replace default in context */ | ||||
| /** Material. */ | /** Material. */ | ||||
| struct Material *material; | struct Material *material; | ||||
| } BrushGpencilSettings; | } BrushGpencilSettings; | ||||
| /* BrushGpencilSettings->preset_type. | /* BrushGpencilSettings->preset_type. | ||||
| * Use a range for each group and not continuous values.*/ | * Use a range for each group and not continuous values.*/ | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | typedef enum eGPDbrush_Flag { | ||||
| /* Do not show fill color while drawing (no lasso mode) */ | /* Do not show fill color while drawing (no lasso mode) */ | ||||
| GP_BRUSH_DISSABLE_LASSO = (1 << 14), | GP_BRUSH_DISSABLE_LASSO = (1 << 14), | ||||
| /* Do not erase strokes oLcluded */ | /* Do not erase strokes oLcluded */ | ||||
| GP_BRUSH_OCCLUDE_ERASER = (1 << 15), | GP_BRUSH_OCCLUDE_ERASER = (1 << 15), | ||||
| /* Post process trim stroke */ | /* Post process trim stroke */ | ||||
| GP_BRUSH_TRIM_STROKE = (1 << 16), | GP_BRUSH_TRIM_STROKE = (1 << 16), | ||||
| } eGPDbrush_Flag; | } eGPDbrush_Flag; | ||||
| typedef enum eGPDbrush_Flag2 { | |||||
| /* Brush use random Hue at stroke level */ | |||||
| GP_BRUSH_USE_HUE_AT_STROKE = (1 << 0), | |||||
| /* Brush use random Saturation at stroke level */ | |||||
| GP_BRUSH_USE_SAT_AT_STROKE = (1 << 1), | |||||
| /* Brush use random Value at stroke level */ | |||||
| GP_BRUSH_USE_VAL_AT_STROKE = (1 << 2), | |||||
| /* Brush use random Pressure at stroke level */ | |||||
| GP_BRUSH_USE_PRESS_AT_STROKE = (1 << 3), | |||||
| /* Brush use random Strength at stroke level */ | |||||
| GP_BRUSH_USE_STRENGTH_AT_STROKE = (1 << 4), | |||||
| /* Brush use random UV at stroke level */ | |||||
| GP_BRUSH_USE_UV_AT_STROKE = (1 << 5), | |||||
| /* Brush use Hue random pressure */ | |||||
| GP_BRUSH_USE_HUE_RAND_PRESS = (1 << 6), | |||||
| /* Brush use Saturation random pressure */ | |||||
| GP_BRUSH_USE_SAT_RAND_PRESS = (1 << 7), | |||||
| /* Brush use Value random pressure */ | |||||
| GP_BRUSH_USE_VAL_RAND_PRESS = (1 << 8), | |||||
| /* Brush use Pressure random pressure */ | |||||
| GP_BRUSH_USE_PRESSURE_RAND_PRESS = (1 << 9), | |||||
| /* Brush use Strength random pressure */ | |||||
| GP_BRUSH_USE_STRENGTH_RAND_PRESS = (1 << 10), | |||||
| /* Brush use UV random pressure */ | |||||
| GP_BRUSH_USE_UV_RAND_PRESS = (1 << 11), | |||||
| } eGPDbrush_Flag2; | |||||
| /* BrushGpencilSettings->gp_fill_draw_mode */ | /* BrushGpencilSettings->gp_fill_draw_mode */ | ||||
| typedef enum eGP_FillDrawModes { | typedef enum eGP_FillDrawModes { | ||||
| GP_FILL_DMODE_BOTH = 0, | GP_FILL_DMODE_BOTH = 0, | ||||
| GP_FILL_DMODE_STROKE = 1, | GP_FILL_DMODE_STROKE = 1, | ||||
| GP_FILL_DMODE_CONTROL = 2, | GP_FILL_DMODE_CONTROL = 2, | ||||
| } eGP_FillDrawModes; | } eGP_FillDrawModes; | ||||
| /* BrushGpencilSettings->gp_eraser_mode */ | /* BrushGpencilSettings->gp_eraser_mode */ | ||||
| ▲ Show 20 Lines • Show All 607 Lines • Show Last 20 Lines | |||||