Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_brush_types.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | typedef struct BrushClone { | ||||
| struct Image *image; | struct Image *image; | ||||
| /** Offset of clone image from canvas. */ | /** Offset of clone image from canvas. */ | ||||
| float offset[2]; | float offset[2]; | ||||
| /** Transparency for drawing of clone image. */ | /** Transparency for drawing of clone image. */ | ||||
| float alpha; | float alpha; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| } BrushClone; | } BrushClone; | ||||
| #define GPENCIL_MIN_FILL_FAC 0.05f | |||||
| typedef struct BrushGpencilSettings { | typedef struct BrushGpencilSettings { | ||||
| /** Amount of smoothing to apply to newly created strokes. */ | /** Amount of smoothing to apply to newly created strokes. */ | ||||
| float draw_smoothfac; | float draw_smoothfac; | ||||
| char _pad2[4]; | /** Fill zoom factor */ | ||||
| float fill_factor; | |||||
| /** Amount of alpha strength to apply to newly created strokes. */ | /** Amount of alpha strength to apply to newly created strokes. */ | ||||
| float draw_strength; | float draw_strength; | ||||
| /** Amount of jitter to apply to newly created strokes. */ | /** Amount of jitter to apply to newly created strokes. */ | ||||
| float draw_jitter; | float draw_jitter; | ||||
| /** Angle when the brush has full thickness. */ | /** Angle when the brush has full thickness. */ | ||||
| float draw_angle; | float draw_angle; | ||||
| /** Factor to apply when angle change (only 90 degrees). */ | /** Factor to apply when angle change (only 90 degrees). */ | ||||
| float draw_angle_factor; | float draw_angle_factor; | ||||
| /** Factor of randomness for pressure. */ | /** Factor of randomness for pressure. */ | ||||
| float draw_random_press; | float draw_random_press; | ||||
| /** Factor of strength for strength. */ | /** Factor of strength for strength. */ | ||||
| float draw_random_strength; | float draw_random_strength; | ||||
| /** Number of times to apply smooth factor to new strokes. */ | /** Number of times to apply smooth factor to new strokes. */ | ||||
| short draw_smoothlvl; | short draw_smoothlvl; | ||||
| /** Number of times to subdivide new strokes. */ | /** Number of times to subdivide new strokes. */ | ||||
| short draw_subdivide; | short draw_subdivide; | ||||
| /** Layers used for fill. */ | /** Layers used for fill. */ | ||||
| short fill_layer_mode; | short fill_layer_mode; | ||||
| short fill_direction; | short fill_direction; | ||||
| /** 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 */ | char _pad2[2]; | ||||
| short fill_factor; | |||||
| int flag2; | 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 20 Lines • Show All 329 Lines • Show Last 20 Lines | |||||