Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_modifier_types.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | typedef enum GpencilModifierType { | ||||
| eGpencilModifierType_Texture = 18, | eGpencilModifierType_Texture = 18, | ||||
| eGpencilModifierType_Lineart = 19, | eGpencilModifierType_Lineart = 19, | ||||
| eGpencilModifierType_Length = 20, | eGpencilModifierType_Length = 20, | ||||
| eGpencilModifierType_WeightProximity = 21, | eGpencilModifierType_WeightProximity = 21, | ||||
| eGpencilModifierType_Dash = 22, | eGpencilModifierType_Dash = 22, | ||||
| eGpencilModifierType_WeightAngle = 23, | eGpencilModifierType_WeightAngle = 23, | ||||
| eGpencilModifierType_Shrinkwrap = 24, | eGpencilModifierType_Shrinkwrap = 24, | ||||
| eGpencilModifierType_Envelope = 25, | eGpencilModifierType_Envelope = 25, | ||||
| eGpencilModifierType_Outline = 26, | |||||
| /* Keep last. */ | /* Keep last. */ | ||||
| NUM_GREASEPENCIL_MODIFIER_TYPES, | NUM_GREASEPENCIL_MODIFIER_TYPES, | ||||
| } GpencilModifierType; | } GpencilModifierType; | ||||
| typedef enum GpencilModifierMode { | typedef enum GpencilModifierMode { | ||||
| eGpencilModifierMode_Realtime = (1 << 0), | eGpencilModifierMode_Realtime = (1 << 0), | ||||
| eGpencilModifierMode_Render = (1 << 1), | eGpencilModifierMode_Render = (1 << 1), | ||||
| eGpencilModifierMode_Editmode = (1 << 2), | eGpencilModifierMode_Editmode = (1 << 2), | ||||
| ▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | typedef enum eThickGpencil_Flag { | ||||
| GP_THICK_INVERT_VGROUP = (1 << 2), | GP_THICK_INVERT_VGROUP = (1 << 2), | ||||
| GP_THICK_CUSTOM_CURVE = (1 << 3), | GP_THICK_CUSTOM_CURVE = (1 << 3), | ||||
| GP_THICK_NORMALIZE = (1 << 4), | GP_THICK_NORMALIZE = (1 << 4), | ||||
| GP_THICK_INVERT_LAYERPASS = (1 << 5), | GP_THICK_INVERT_LAYERPASS = (1 << 5), | ||||
| GP_THICK_INVERT_MATERIAL = (1 << 6), | GP_THICK_INVERT_MATERIAL = (1 << 6), | ||||
| GP_THICK_WEIGHT_FACTOR = (1 << 7), | GP_THICK_WEIGHT_FACTOR = (1 << 7), | ||||
| } eThickGpencil_Flag; | } eThickGpencil_Flag; | ||||
| typedef struct TimeGpencilModifierSegment { | |||||
| char name[64]; | |||||
| /* For path reference. */ | |||||
| struct TimeGpencilModifierData *gpmd; | |||||
| int seg_start; | |||||
| int seg_end; | |||||
| int seg_mode; | |||||
| int seg_repeat; | |||||
| } TimeGpencilModifierSegment; | |||||
| typedef struct TimeGpencilModifierData { | typedef struct TimeGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Material *material; | |||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| int offset; | int offset; | ||||
| /** Animation scale. */ | /** Animation scale. */ | ||||
| float frame_scale; | float frame_scale; | ||||
| int mode; | int mode; | ||||
| /** Start and end frame for custom range. */ | /** Start and end frame for custom range. */ | ||||
| int sfra, efra; | int sfra, efra; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| TimeGpencilModifierSegment *segments; | |||||
| int segments_len; | |||||
| int segment_active_index; | |||||
| } TimeGpencilModifierData; | } TimeGpencilModifierData; | ||||
| typedef enum eTimeGpencil_Flag { | typedef enum eTimeGpencil_Flag { | ||||
| GP_TIME_INVERT_LAYER = (1 << 0), | GP_TIME_INVERT_LAYER = (1 << 0), | ||||
| GP_TIME_KEEP_LOOP = (1 << 1), | GP_TIME_KEEP_LOOP = (1 << 1), | ||||
| GP_TIME_INVERT_LAYERPASS = (1 << 2), | GP_TIME_INVERT_LAYERPASS = (1 << 2), | ||||
| GP_TIME_CUSTOM_RANGE = (1 << 3), | GP_TIME_CUSTOM_RANGE = (1 << 3), | ||||
| } eTimeGpencil_Flag; | } eTimeGpencil_Flag; | ||||
| typedef enum eTimeGpencil_Mode { | typedef enum eTimeGpencil_Mode { | ||||
| GP_TIME_MODE_NORMAL = 0, | GP_TIME_MODE_NORMAL = 0, | ||||
| GP_TIME_MODE_REVERSE = 1, | GP_TIME_MODE_REVERSE = 1, | ||||
| GP_TIME_MODE_FIX = 2, | GP_TIME_MODE_FIX = 2, | ||||
| GP_TIME_MODE_PINGPONG = 3, | GP_TIME_MODE_PINGPONG = 3, | ||||
| GP_TIME_MODE_CHAIN = 4, | |||||
| } eTimeGpencil_Mode; | } eTimeGpencil_Mode; | ||||
| typedef enum eTimeGpencil_Seg_Mode { | |||||
| GP_TIME_SEG_MODE_NORMAL = 0, | |||||
| GP_TIME_SEG_MODE_REVERSE = 1, | |||||
| GP_TIME_SEG_MODE_PINGPONG = 2, | |||||
| } eTimeGpencil_Seg_Mode; | |||||
| typedef enum eModifyColorGpencil_Flag { | typedef enum eModifyColorGpencil_Flag { | ||||
| GP_MODIFY_COLOR_BOTH = 0, | GP_MODIFY_COLOR_BOTH = 0, | ||||
| GP_MODIFY_COLOR_STROKE = 1, | GP_MODIFY_COLOR_STROKE = 1, | ||||
| GP_MODIFY_COLOR_FILL = 2, | GP_MODIFY_COLOR_FILL = 2, | ||||
| GP_MODIFY_COLOR_HARDNESS = 3, | GP_MODIFY_COLOR_HARDNESS = 3, | ||||
| } eModifyColorGpencil_Flag; | } eModifyColorGpencil_Flag; | ||||
| typedef enum eOpacityModesGpencil_Flag { | typedef enum eOpacityModesGpencil_Flag { | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | typedef enum eOpacityGpencil_Flag { | ||||
| GP_OPACITY_INVERT_VGROUP = (1 << 2), | GP_OPACITY_INVERT_VGROUP = (1 << 2), | ||||
| GP_OPACITY_INVERT_LAYERPASS = (1 << 4), | GP_OPACITY_INVERT_LAYERPASS = (1 << 4), | ||||
| GP_OPACITY_INVERT_MATERIAL = (1 << 5), | GP_OPACITY_INVERT_MATERIAL = (1 << 5), | ||||
| GP_OPACITY_CUSTOM_CURVE = (1 << 6), | GP_OPACITY_CUSTOM_CURVE = (1 << 6), | ||||
| GP_OPACITY_NORMALIZE = (1 << 7), | GP_OPACITY_NORMALIZE = (1 << 7), | ||||
| GP_OPACITY_WEIGHT_FACTOR = (1 << 8), | GP_OPACITY_WEIGHT_FACTOR = (1 << 8), | ||||
| } eOpacityGpencil_Flag; | } eOpacityGpencil_Flag; | ||||
| typedef struct OutlineGpencilModifierData { | |||||
| GpencilModifierData modifier; | |||||
| /** Target stroke origin. */ | |||||
| struct Object *object; | |||||
| /** Material for filtering. */ | |||||
| struct Material *material; | |||||
| /** Layer name. */ | |||||
| char layername[64]; | |||||
| /** Custom index for passes. */ | |||||
| int pass_index; | |||||
| /** Flags. */ | |||||
| int flag; | |||||
| /** Thickness. */ | |||||
| int thickness; | |||||
| /** Sample Length. */ | |||||
| float sample_length; | |||||
| /** Subdivisions. */ | |||||
| int subdiv; | |||||
| /** Custom index for passes. */ | |||||
| int layer_pass; | |||||
| /** Material for outline. */ | |||||
| struct Material *outline_material; | |||||
| } OutlineGpencilModifierData; | |||||
| typedef enum eOutlineGpencil_Flag { | |||||
| GP_OUTLINE_INVERT_LAYER = (1 << 0), | |||||
| GP_OUTLINE_INVERT_PASS = (1 << 1), | |||||
| GP_OUTLINE_INVERT_LAYERPASS = (1 << 2), | |||||
| GP_OUTLINE_INVERT_MATERIAL = (1 << 3), | |||||
| GP_OUTLINE_KEEP_SHAPE = (1 << 4), | |||||
| } eOutlineGpencil_Flag; | |||||
| typedef struct ArrayGpencilModifierData { | typedef struct ArrayGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Material for filtering. */ | /** Material for filtering. */ | ||||
| struct Material *material; | struct Material *material; | ||||
| /** Number of elements in array. */ | /** Number of elements in array. */ | ||||
| int count; | int count; | ||||
| /** Several flags. */ | /** Several flags. */ | ||||
| ▲ Show 20 Lines • Show All 911 Lines • Show Last 20 Lines | |||||