Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_brush_types.h
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | typedef struct Brush { | ||||
| float add_col[3]; | float add_col[3]; | ||||
| float sub_col[3]; | float sub_col[3]; | ||||
| float stencil_pos[2]; | float stencil_pos[2]; | ||||
| float stencil_dimension[2]; | float stencil_dimension[2]; | ||||
| float mask_stencil_pos[2]; | float mask_stencil_pos[2]; | ||||
| float mask_stencil_dimension[2]; | float mask_stencil_dimension[2]; | ||||
| /* vpaint */ | |||||
| int alpha_paint; | |||||
| int pad; | |||||
| } Brush; | } Brush; | ||||
| typedef struct PaletteColor { | typedef struct PaletteColor { | ||||
| struct PaletteColor *next, *prev; | struct PaletteColor *next, *prev; | ||||
| /* two values, one to store rgb, other to store values for sculpt/weight */ | /* two values, one to store rgb, other to store values for sculpt/weight */ | ||||
| float rgb[3]; | float rgb[3]; | ||||
| float value; | float value; | ||||
| } PaletteColor; | } PaletteColor; | ||||
| Show All 37 Lines | typedef enum BrushFlags { | ||||
| BRUSH_AIRBRUSH = (1 << 0), | BRUSH_AIRBRUSH = (1 << 0), | ||||
| // BRUSH_TORUS = (1 << 1), deprecated, use paint->symmetry_flags & PAINT_TILE_* | // BRUSH_TORUS = (1 << 1), deprecated, use paint->symmetry_flags & PAINT_TILE_* | ||||
| BRUSH_ALPHA_PRESSURE = (1 << 2), | BRUSH_ALPHA_PRESSURE = (1 << 2), | ||||
| BRUSH_SIZE_PRESSURE = (1 << 3), | BRUSH_SIZE_PRESSURE = (1 << 3), | ||||
| BRUSH_JITTER_PRESSURE = (1 << 4), | BRUSH_JITTER_PRESSURE = (1 << 4), | ||||
| BRUSH_SPACING_PRESSURE = (1 << 5), | BRUSH_SPACING_PRESSURE = (1 << 5), | ||||
| BRUSH_UNUSED = (1 << 6), | BRUSH_UNUSED = (1 << 6), | ||||
| // BRUSH_RAKE = (1 << 7), deprecated, use brush_angle_mode | // BRUSH_RAKE = (1 << 7), deprecated, use brush_angle_mode | ||||
| BRUSH_ALPHA_VPAINT = (1 << 7), | |||||
| BRUSH_ANCHORED = (1 << 8), | BRUSH_ANCHORED = (1 << 8), | ||||
| BRUSH_DIR_IN = (1 << 9), | BRUSH_DIR_IN = (1 << 9), | ||||
| BRUSH_SPACE = (1 << 10), | BRUSH_SPACE = (1 << 10), | ||||
| BRUSH_SMOOTH_STROKE = (1 << 11), | BRUSH_SMOOTH_STROKE = (1 << 11), | ||||
| BRUSH_PERSISTENT = (1 << 12), | BRUSH_PERSISTENT = (1 << 12), | ||||
| BRUSH_ACCUMULATE = (1 << 13), | BRUSH_ACCUMULATE = (1 << 13), | ||||
| BRUSH_LOCK_ALPHA = (1 << 14), | BRUSH_LOCK_ALPHA = (1 << 14), | ||||
| BRUSH_ORIGINAL_NORMAL = (1 << 15), | BRUSH_ORIGINAL_NORMAL = (1 << 15), | ||||
| ▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | enum { | ||||
| PAINT_BLEND_ADD = 1, | PAINT_BLEND_ADD = 1, | ||||
| PAINT_BLEND_SUB = 2, | PAINT_BLEND_SUB = 2, | ||||
| PAINT_BLEND_MUL = 3, | PAINT_BLEND_MUL = 3, | ||||
| PAINT_BLEND_BLUR = 4, | PAINT_BLEND_BLUR = 4, | ||||
| PAINT_BLEND_LIGHTEN = 5, | PAINT_BLEND_LIGHTEN = 5, | ||||
| PAINT_BLEND_DARKEN = 6, | PAINT_BLEND_DARKEN = 6, | ||||
| PAINT_BLEND_AVERAGE = 7, | PAINT_BLEND_AVERAGE = 7, | ||||
| PAINT_BLEND_SMEAR = 8, | PAINT_BLEND_SMEAR = 8, | ||||
| PAINT_BLEND_COLORDODGE = 9, | |||||
| PAINT_BLEND_DIFFERENCE = 10, | |||||
| PAINT_BLEND_SCREEN = 11, | |||||
| PAINT_BLEND_HARDLIGHT = 12, | |||||
| PAINT_BLEND_OVERLAY = 13, | |||||
| PAINT_BLEND_SOFTLIGHT = 14, | |||||
| PAINT_BLEND_EXCLUSION = 15, | |||||
| PAINT_BLEND_LUMINOCITY = 16, | |||||
| PAINT_BLEND_SATURATION = 17, | |||||
| PAINT_BLEND_HUE = 18, | |||||
| }; | }; | ||||
| typedef enum { | typedef enum { | ||||
| BRUSH_MASK_DRAW = 0, | BRUSH_MASK_DRAW = 0, | ||||
| BRUSH_MASK_SMOOTH = 1 | BRUSH_MASK_SMOOTH = 1 | ||||
| } BrushMaskTool; | } BrushMaskTool; | ||||
| /* blur kernel types, Brush.blur_mode */ | /* blur kernel types, Brush.blur_mode */ | ||||
| typedef enum BlurKernelType { | typedef enum BlurKernelType { | ||||
| KERNEL_GAUSSIAN, | KERNEL_GAUSSIAN, | ||||
| KERNEL_BOX | KERNEL_BOX | ||||
| } BlurKernelType; | } BlurKernelType; | ||||
| #define MAX_BRUSH_PIXEL_RADIUS 500 | #define MAX_BRUSH_PIXEL_RADIUS 500 | ||||
| #endif /* __DNA_BRUSH_TYPES_H__ */ | #endif /* __DNA_BRUSH_TYPES_H__ */ | ||||