Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_brush_types.h
| Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | typedef enum eGP_BrushIcons { | ||||
| GP_BRUSH_ICON_BLOCK = 5, | GP_BRUSH_ICON_BLOCK = 5, | ||||
| GP_BRUSH_ICON_MARKER = 6, | GP_BRUSH_ICON_MARKER = 6, | ||||
| GP_BRUSH_ICON_FILL = 7, | GP_BRUSH_ICON_FILL = 7, | ||||
| GP_BRUSH_ICON_ERASE_SOFT = 8, | GP_BRUSH_ICON_ERASE_SOFT = 8, | ||||
| GP_BRUSH_ICON_ERASE_HARD = 9, | GP_BRUSH_ICON_ERASE_HARD = 9, | ||||
| GP_BRUSH_ICON_ERASE_STROKE = 10, | GP_BRUSH_ICON_ERASE_STROKE = 10, | ||||
| } eGP_BrushIcons; | } eGP_BrushIcons; | ||||
| typedef enum eBrushCurvePreset { | |||||
| BRUSH_CURVE_CUSTOM = 0, | |||||
| BRUSH_CURVE_SMOOTH = 1, | |||||
| BRUSH_CURVE_SPHERE = 2, | |||||
| BRUSH_CURVE_ROOT = 3, | |||||
| BRUSH_CURVE_SHARP = 4, | |||||
| BRUSH_CURVE_LIN = 5, | |||||
| BRUSH_CURVE_POW4 = 6, | |||||
| BRUSH_CURVE_INVSQUARE = 7, | |||||
| BRUSH_CURVE_CONSTANT = 8, | |||||
| } eBrushCurvePreset; | |||||
| typedef struct Brush { | typedef struct Brush { | ||||
| ID id; | ID id; | ||||
| struct BrushClone clone; | struct BrushClone clone; | ||||
| /** Falloff curve. */ | /** Falloff curve. */ | ||||
| struct CurveMapping *curve; | struct CurveMapping *curve; | ||||
| struct MTex mtex; | struct MTex mtex; | ||||
| struct MTex mask_mtex; | struct MTex mask_mtex; | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | typedef struct Brush { | ||||
| float crease_pinch_factor; | float crease_pinch_factor; | ||||
| float plane_trim; | float plane_trim; | ||||
| /** Affectable height of brush (layer height for layer tool, i.e.). */ | /** Affectable height of brush (layer height for layer tool, i.e.). */ | ||||
| float height; | float height; | ||||
| float texture_sample_bias; | float texture_sample_bias; | ||||
| int curve_preset; | |||||
| char _pad1[4]; | |||||
| /* overlay */ | /* overlay */ | ||||
| int texture_overlay_alpha; | int texture_overlay_alpha; | ||||
| int mask_overlay_alpha; | int mask_overlay_alpha; | ||||
| int cursor_overlay_alpha; | int cursor_overlay_alpha; | ||||
| float unprojected_radius; | float unprojected_radius; | ||||
| /* soften/sharpen */ | /* soften/sharpen */ | ||||
| ▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines | |||||