Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_modifier_types.h
| Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | typedef struct ArrayGpencilModifierData { | ||||
| /** Shift increment. */ | /** Shift increment. */ | ||||
| float shift[3]; | float shift[3]; | ||||
| /** Random Offset. */ | /** Random Offset. */ | ||||
| float rnd_offset[3]; | float rnd_offset[3]; | ||||
| /** Random Rotation. */ | /** Random Rotation. */ | ||||
| float rnd_rot[3]; | float rnd_rot[3]; | ||||
| /** Random Scales. */ | /** Random Scales. */ | ||||
| float rnd_scale[3]; | float rnd_scale[3]; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| /** (first element is the index) random values. */ | /** (first element is the index) random values. */ | ||||
| int seed; | int seed; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| ▲ Show 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | typedef enum eSimplifyGpencil_Mode { | ||||
| /* Use RDP algorithm */ | /* Use RDP algorithm */ | ||||
| GP_SIMPLIFY_ADAPTIVE = 1, | GP_SIMPLIFY_ADAPTIVE = 1, | ||||
| /* Sample the stroke using a fixed length */ | /* Sample the stroke using a fixed length */ | ||||
| GP_SIMPLIFY_SAMPLE = 2, | GP_SIMPLIFY_SAMPLE = 2, | ||||
| /* Sample the stroke doing vertex merge */ | /* Sample the stroke doing vertex merge */ | ||||
| GP_SIMPLIFY_MERGE = 3, | GP_SIMPLIFY_MERGE = 3, | ||||
| } eSimplifyGpencil_Mode; | } eSimplifyGpencil_Mode; | ||||
| typedef enum eOffsetGpencil_Mode { | |||||
| GP_OFFSET_RANDOM = 0, | |||||
| GP_OFFSET_LAYER = 1, | |||||
| GP_OFFSET_MATERIAL = 2, | |||||
| GP_OFFSET_STROKE = 3 | |||||
| } eOffsetGpencil_Mode; | |||||
| typedef struct OffsetGpencilModifierData { | typedef struct OffsetGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | |||||
| /** Material for filtering. */ | /** Material for filtering. */ | ||||
| struct Material *material; | struct Material *material; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | /** Material name. */ | ||||
| char materialname[64] DNA_DEPRECATED; | char materialname[64] DNA_DEPRECATED; | ||||
| /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | ||||
| char vgname[64]; | char vgname[64]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| float loc[3]; | float loc[3]; | ||||
| float rot[3]; | float rot[3]; | ||||
| float scale[3]; | float scale[3]; | ||||
| /** Random Offset. */ | /** Random Offset. */ | ||||
| float rnd_offset[3]; | float rnd_offset[3]; | ||||
| /** Random Rotation. */ | /** Random Rotation. */ | ||||
| float rnd_rot[3]; | float rnd_rot[3]; | ||||
| /** Random Scales. */ | /** Random Scales. */ | ||||
| float rnd_scale[3]; | float rnd_scale[3]; | ||||
| /** (first element is the index) random values. */ | /** (first element is the index) random values. */ | ||||
| int seed; | int seed; | ||||
| /** Custom index for passes. */ | int mode; | ||||
| int stroke_step; | |||||
| int stroke_start_offset; | |||||
| int layer_pass; | int layer_pass; | ||||
| char _pad[4]; | |||||
| } OffsetGpencilModifierData; | } OffsetGpencilModifierData; | ||||
| typedef enum eOffsetGpencil_Flag { | typedef enum eOffsetGpencil_Flag { | ||||
| GP_OFFSET_INVERT_LAYER = (1 << 0), | GP_OFFSET_INVERT_LAYER = (1 << 0), | ||||
| GP_OFFSET_INVERT_PASS = (1 << 1), | GP_OFFSET_INVERT_PASS = (1 << 1), | ||||
| GP_OFFSET_INVERT_VGROUP = (1 << 2), | GP_OFFSET_INVERT_VGROUP = (1 << 2), | ||||
| GP_OFFSET_INVERT_LAYERPASS = (1 << 3), | GP_OFFSET_INVERT_LAYERPASS = (1 << 3), | ||||
| GP_OFFSET_INVERT_MATERIAL = (1 << 4), | GP_OFFSET_INVERT_MATERIAL = (1 << 4), | ||||
| ▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines | |||||