Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_modifier_types.h
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | typedef struct GpencilModifierData { | ||||
| char *error; | char *error; | ||||
| } GpencilModifierData; | } GpencilModifierData; | ||||
| typedef struct NoiseGpencilModifierData { | typedef struct NoiseGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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; | ||||
| /** Several flags. */ | /** Several flags. */ | ||||
| int flag; | int flag; | ||||
| /** Factor of noise. */ | /** Factor of noise. */ | ||||
| float factor; | float factor; | ||||
| Show All 12 Lines | typedef enum eNoiseGpencil_Flag { | ||||
| GP_NOISE_MOD_THICKNESS = (1 << 3), | GP_NOISE_MOD_THICKNESS = (1 << 3), | ||||
| GP_NOISE_FULL_STROKE = (1 << 4), | GP_NOISE_FULL_STROKE = (1 << 4), | ||||
| GP_NOISE_MOVE_EXTREME = (1 << 5), | GP_NOISE_MOVE_EXTREME = (1 << 5), | ||||
| GP_NOISE_INVERT_LAYER = (1 << 6), | GP_NOISE_INVERT_LAYER = (1 << 6), | ||||
| GP_NOISE_INVERT_PASS = (1 << 7), | GP_NOISE_INVERT_PASS = (1 << 7), | ||||
| GP_NOISE_INVERT_VGROUP = (1 << 8), | GP_NOISE_INVERT_VGROUP = (1 << 8), | ||||
| GP_NOISE_MOD_UV = (1 << 9), | GP_NOISE_MOD_UV = (1 << 9), | ||||
| GP_NOISE_INVERT_LAYERPASS = (1 << 10), | GP_NOISE_INVERT_LAYERPASS = (1 << 10), | ||||
| GP_NOISE_INVERT_MATERIAL = (1 << 11), | |||||
| } eNoiseGpencil_Flag; | } eNoiseGpencil_Flag; | ||||
| typedef struct SubdivGpencilModifierData { | typedef struct SubdivGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| /** Factor of subdivision. */ | /** Factor of subdivision. */ | ||||
| int level; | int level; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| } SubdivGpencilModifierData; | } SubdivGpencilModifierData; | ||||
| typedef enum eSubdivGpencil_Flag { | typedef enum eSubdivGpencil_Flag { | ||||
| GP_SUBDIV_SIMPLE = (1 << 0), | GP_SUBDIV_SIMPLE = (1 << 0), | ||||
| GP_SUBDIV_INVERT_LAYER = (1 << 1), | GP_SUBDIV_INVERT_LAYER = (1 << 1), | ||||
| GP_SUBDIV_INVERT_PASS = (1 << 2), | GP_SUBDIV_INVERT_PASS = (1 << 2), | ||||
| GP_SUBDIV_INVERT_LAYERPASS = (1 << 3), | GP_SUBDIV_INVERT_LAYERPASS = (1 << 3), | ||||
| GP_SUBDIV_INVERT_MATERIAL = (1 << 4), | |||||
| } eSubdivGpencil_Flag; | } eSubdivGpencil_Flag; | ||||
| typedef struct ThickGpencilModifierData { | typedef struct ThickGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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; | ||||
| /** Thickness change. */ | /** Thickness change. */ | ||||
| int thickness; | int thickness; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| struct CurveMapping *curve_thickness; | struct CurveMapping *curve_thickness; | ||||
| } ThickGpencilModifierData; | } ThickGpencilModifierData; | ||||
| typedef enum eThickGpencil_Flag { | typedef enum eThickGpencil_Flag { | ||||
| GP_THICK_INVERT_LAYER = (1 << 0), | GP_THICK_INVERT_LAYER = (1 << 0), | ||||
| GP_THICK_INVERT_PASS = (1 << 1), | GP_THICK_INVERT_PASS = (1 << 1), | ||||
| 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), | |||||
| } eThickGpencil_Flag; | } eThickGpencil_Flag; | ||||
| typedef struct TimeGpencilModifierData { | typedef struct TimeGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| Show All 26 Lines | typedef enum eModifyColorGpencil_Flag { | ||||
| GP_MODIFY_COLOR_STROKE = 1, | GP_MODIFY_COLOR_STROKE = 1, | ||||
| GP_MODIFY_COLOR_FILL = 2, | GP_MODIFY_COLOR_FILL = 2, | ||||
| } eModifyColorGpencil_Flag; | } eModifyColorGpencil_Flag; | ||||
| typedef struct TintGpencilModifierData { | typedef struct TintGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| /** Tint color. */ | /** Tint color. */ | ||||
| float rgb[3]; | float rgb[3]; | ||||
| /** Mix factor. */ | /** Mix factor. */ | ||||
| float factor; | float factor; | ||||
| /** Modify stroke, fill or both. */ | /** Modify stroke, fill or both. */ | ||||
| char modify_color; | char modify_color; | ||||
| char _pad[7]; | char _pad[7]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| } TintGpencilModifierData; | } TintGpencilModifierData; | ||||
| typedef enum eTintGpencil_Flag { | typedef enum eTintGpencil_Flag { | ||||
| GP_TINT_CREATE_COLORS = (1 << 0), | GP_TINT_CREATE_COLORS = (1 << 0), | ||||
| GP_TINT_INVERT_LAYER = (1 << 1), | GP_TINT_INVERT_LAYER = (1 << 1), | ||||
| GP_TINT_INVERT_PASS = (1 << 2), | GP_TINT_INVERT_PASS = (1 << 2), | ||||
| GP_TINT_INVERT_LAYERPASS = (1 << 3), | GP_TINT_INVERT_LAYERPASS = (1 << 3), | ||||
| GP_TINT_INVERT_MATERIAL = (1 << 4), | |||||
| } eTintGpencil_Flag; | } eTintGpencil_Flag; | ||||
| typedef struct ColorGpencilModifierData { | typedef struct ColorGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| /** Hsv factors. */ | /** Hsv factors. */ | ||||
| float hsv[3]; | float hsv[3]; | ||||
| /** Modify stroke, fill or both. */ | /** Modify stroke, fill or both. */ | ||||
| char modify_color; | char modify_color; | ||||
| char _pad[3]; | char _pad[3]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| } ColorGpencilModifierData; | } ColorGpencilModifierData; | ||||
| typedef enum eColorGpencil_Flag { | typedef enum eColorGpencil_Flag { | ||||
| GP_COLOR_CREATE_COLORS = (1 << 0), | GP_COLOR_CREATE_COLORS = (1 << 0), | ||||
| GP_COLOR_INVERT_LAYER = (1 << 1), | GP_COLOR_INVERT_LAYER = (1 << 1), | ||||
| GP_COLOR_INVERT_PASS = (1 << 2), | GP_COLOR_INVERT_PASS = (1 << 2), | ||||
| GP_COLOR_INVERT_LAYERPASS = (1 << 3), | GP_COLOR_INVERT_LAYERPASS = (1 << 3), | ||||
| GP_COLOR_INVERT_MATERIAL = (1 << 4), | |||||
| } eColorGpencil_Flag; | } eColorGpencil_Flag; | ||||
| typedef struct OpacityGpencilModifierData { | typedef struct OpacityGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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; | ||||
| /** Main Opacity factor. */ | /** Main Opacity factor. */ | ||||
| float factor; | float factor; | ||||
| /** Modify stroke, fill or both. */ | /** Modify stroke, fill or both. */ | ||||
| char modify_color; | char modify_color; | ||||
| char _pad[3]; | char _pad[3]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| } OpacityGpencilModifierData; | } OpacityGpencilModifierData; | ||||
| typedef enum eOpacityGpencil_Flag { | typedef enum eOpacityGpencil_Flag { | ||||
| GP_OPACITY_INVERT_LAYER = (1 << 0), | GP_OPACITY_INVERT_LAYER = (1 << 0), | ||||
| GP_OPACITY_INVERT_PASS = (1 << 1), | GP_OPACITY_INVERT_PASS = (1 << 1), | ||||
| GP_OPACITY_INVERT_VGROUP = (1 << 2), | GP_OPACITY_INVERT_VGROUP = (1 << 2), | ||||
| GP_OPACITY_CREATE_COLORS = (1 << 3), | GP_OPACITY_CREATE_COLORS = (1 << 3), | ||||
| GP_OPACITY_INVERT_LAYERPASS = (1 << 4), | GP_OPACITY_INVERT_LAYERPASS = (1 << 4), | ||||
| GP_OPACITY_INVERT_MATERIAL = (1 << 5), | |||||
| } eOpacityGpencil_Flag; | } eOpacityGpencil_Flag; | ||||
| typedef struct ArrayGpencilModifierData { | typedef struct ArrayGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Number of elements in array. */ | /** Number of elements in array. */ | ||||
| int count; | int count; | ||||
| /** Several flags. */ | /** Several flags. */ | ||||
| Show All 13 Lines | typedef struct ArrayGpencilModifierData { | ||||
| /** (first element is the index) random values. */ | /** (first element is the index) random values. */ | ||||
| float rnd[20]; | float rnd[20]; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Material replace (0 keep default). */ | /** Material replace (0 keep default). */ | ||||
| int mat_rpl; | int mat_rpl; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| } ArrayGpencilModifierData; | } ArrayGpencilModifierData; | ||||
| typedef enum eArrayGpencil_Flag { | typedef enum eArrayGpencil_Flag { | ||||
| GP_ARRAY_RANDOM_SIZE = (1 << 0), | GP_ARRAY_RANDOM_SIZE = (1 << 0), | ||||
| GP_ARRAY_RANDOM_ROT = (1 << 1), | GP_ARRAY_RANDOM_ROT = (1 << 1), | ||||
| GP_ARRAY_INVERT_LAYER = (1 << 2), | GP_ARRAY_INVERT_LAYER = (1 << 2), | ||||
| GP_ARRAY_INVERT_PASS = (1 << 3), | GP_ARRAY_INVERT_PASS = (1 << 3), | ||||
| GP_ARRAY_KEEP_ONTOP = (1 << 4), | GP_ARRAY_KEEP_ONTOP = (1 << 4), | ||||
| GP_ARRAY_INVERT_LAYERPASS = (1 << 5), | GP_ARRAY_INVERT_LAYERPASS = (1 << 5), | ||||
| GP_ARRAY_INVERT_MATERIAL = (1 << 6), | |||||
| } eArrayGpencil_Flag; | } eArrayGpencil_Flag; | ||||
| typedef struct BuildGpencilModifierData { | typedef struct BuildGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** If set, restrict modifier to operating on this layer. */ | /** If set, restrict modifier to operating on this layer. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| int pass_index; | int pass_index; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| /** | /** | ||||
| * If GP_BUILD_RESTRICT_TIME is set, | * If GP_BUILD_RESTRICT_TIME is set, | ||||
| * the defines the frame range where GP frames are considered. | * the defines the frame range where GP frames are considered. | ||||
| */ | */ | ||||
| float start_frame; | float start_frame; | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | typedef enum eBuildGpencil_Flag { | ||||
| GP_BUILD_INVERT_LAYERPASS = (1 << 3), | GP_BUILD_INVERT_LAYERPASS = (1 << 3), | ||||
| } eBuildGpencil_Flag; | } eBuildGpencil_Flag; | ||||
| typedef struct LatticeGpencilModifierData { | typedef struct LatticeGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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 strength; | float strength; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| /** Runtime only (LatticeDeformData). */ | /** Runtime only (LatticeDeformData). */ | ||||
| void *cache_data; | void *cache_data; | ||||
| } LatticeGpencilModifierData; | } LatticeGpencilModifierData; | ||||
| typedef enum eLatticeGpencil_Flag { | typedef enum eLatticeGpencil_Flag { | ||||
| GP_LATTICE_INVERT_LAYER = (1 << 0), | GP_LATTICE_INVERT_LAYER = (1 << 0), | ||||
| GP_LATTICE_INVERT_PASS = (1 << 1), | GP_LATTICE_INVERT_PASS = (1 << 1), | ||||
| GP_LATTICE_INVERT_VGROUP = (1 << 2), | GP_LATTICE_INVERT_VGROUP = (1 << 2), | ||||
| GP_LATTICE_INVERT_LAYERPASS = (1 << 3), | GP_LATTICE_INVERT_LAYERPASS = (1 << 3), | ||||
| GP_LATTICE_INVERT_MATERIAL = (1 << 4), | |||||
| } eLatticeGpencil_Flag; | } eLatticeGpencil_Flag; | ||||
| typedef struct MirrorGpencilModifierData { | typedef struct MirrorGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| } MirrorGpencilModifierData; | } MirrorGpencilModifierData; | ||||
| typedef enum eMirrorGpencil_Flag { | typedef enum eMirrorGpencil_Flag { | ||||
| GP_MIRROR_INVERT_LAYER = (1 << 0), | GP_MIRROR_INVERT_LAYER = (1 << 0), | ||||
| GP_MIRROR_INVERT_PASS = (1 << 1), | GP_MIRROR_INVERT_PASS = (1 << 1), | ||||
| GP_MIRROR_CLIPPING = (1 << 2), | GP_MIRROR_CLIPPING = (1 << 2), | ||||
| GP_MIRROR_AXIS_X = (1 << 3), | GP_MIRROR_AXIS_X = (1 << 3), | ||||
| GP_MIRROR_AXIS_Y = (1 << 4), | GP_MIRROR_AXIS_Y = (1 << 4), | ||||
| GP_MIRROR_AXIS_Z = (1 << 5), | GP_MIRROR_AXIS_Z = (1 << 5), | ||||
| GP_MIRROR_INVERT_LAYERPASS = (1 << 6), | GP_MIRROR_INVERT_LAYERPASS = (1 << 6), | ||||
| GP_MIRROR_INVERT_MATERIAL = (1 << 7), | |||||
| } eMirrorGpencil_Flag; | } eMirrorGpencil_Flag; | ||||
| typedef struct HookGpencilModifierData { | typedef struct HookGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Optional name of bone target, MAX_ID_NAME-2. */ | /** Optional name of bone target, MAX_ID_NAME-2. */ | ||||
| char subtarget[64]; | char subtarget[64]; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| Show All 12 Lines | |||||
| } HookGpencilModifierData; | } HookGpencilModifierData; | ||||
| typedef enum eHookGpencil_Flag { | typedef enum eHookGpencil_Flag { | ||||
| GP_HOOK_INVERT_LAYER = (1 << 0), | GP_HOOK_INVERT_LAYER = (1 << 0), | ||||
| GP_HOOK_INVERT_PASS = (1 << 1), | GP_HOOK_INVERT_PASS = (1 << 1), | ||||
| GP_HOOK_INVERT_VGROUP = (1 << 2), | GP_HOOK_INVERT_VGROUP = (1 << 2), | ||||
| GP_HOOK_UNIFORM_SPACE = (1 << 3), | GP_HOOK_UNIFORM_SPACE = (1 << 3), | ||||
| GP_HOOK_INVERT_LAYERPASS = (1 << 4), | GP_HOOK_INVERT_LAYERPASS = (1 << 4), | ||||
| GP_HOOK_INVERT_MATERIAL = (1 << 5), | |||||
| } eHookGpencil_Flag; | } eHookGpencil_Flag; | ||||
| typedef enum eHookGpencil_Falloff { | typedef enum eHookGpencil_Falloff { | ||||
| eGPHook_Falloff_None = 0, | eGPHook_Falloff_None = 0, | ||||
| eGPHook_Falloff_Curve = 1, | eGPHook_Falloff_Curve = 1, | ||||
| eGPHook_Falloff_Sharp = 2, | eGPHook_Falloff_Sharp = 2, | ||||
| eGPHook_Falloff_Smooth = 3, | eGPHook_Falloff_Smooth = 3, | ||||
| eGPHook_Falloff_Root = 4, | eGPHook_Falloff_Root = 4, | ||||
| eGPHook_Falloff_Linear = 5, | eGPHook_Falloff_Linear = 5, | ||||
| eGPHook_Falloff_Const = 6, | eGPHook_Falloff_Const = 6, | ||||
| eGPHook_Falloff_Sphere = 7, | eGPHook_Falloff_Sphere = 7, | ||||
| eGPHook_Falloff_InvSquare = 8, | eGPHook_Falloff_InvSquare = 8, | ||||
| } eHookGpencil_Falloff; | } eHookGpencil_Falloff; | ||||
| typedef struct SimplifyGpencilModifierData { | typedef struct SimplifyGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int pass_index; | int pass_index; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| /** Factor of simplify. */ | /** Factor of simplify. */ | ||||
| float factor; | float factor; | ||||
| /** Type of simplify. */ | /** Type of simplify. */ | ||||
| short mode; | short mode; | ||||
| /** Every n vertex to keep. */ | /** Every n vertex to keep. */ | ||||
| short step; | short step; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| /** Sample length */ | /** Sample length */ | ||||
| float length; | float length; | ||||
| /** Merge distance */ | /** Merge distance */ | ||||
| float distance; | float distance; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| } SimplifyGpencilModifierData; | } SimplifyGpencilModifierData; | ||||
| typedef enum eSimplifyGpencil_Flag { | typedef enum eSimplifyGpencil_Flag { | ||||
| GP_SIMPLIFY_INVERT_LAYER = (1 << 0), | GP_SIMPLIFY_INVERT_LAYER = (1 << 0), | ||||
| GP_SIMPLIFY_INVERT_PASS = (1 << 1), | GP_SIMPLIFY_INVERT_PASS = (1 << 1), | ||||
| GP_SIMPLIFY_INVERT_LAYERPASS = (1 << 2), | GP_SIMPLIFY_INVERT_LAYERPASS = (1 << 2), | ||||
| GP_SIMPLIFY_INVERT_MATERIAL = (1 << 3), | |||||
| } eSimplifyGpencil_Flag; | } eSimplifyGpencil_Flag; | ||||
| typedef enum eSimplifyGpencil_Mode { | typedef enum eSimplifyGpencil_Mode { | ||||
| /* Keep only one vertex every n vertices */ | /* Keep only one vertex every n vertices */ | ||||
| GP_SIMPLIFY_FIXED = 0, | GP_SIMPLIFY_FIXED = 0, | ||||
| /* 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 struct OffsetGpencilModifierData { | typedef struct OffsetGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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]; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| } 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), | |||||
| } eOffsetGpencil_Flag; | } eOffsetGpencil_Flag; | ||||
| typedef struct SmoothGpencilModifierData { | typedef struct SmoothGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| char layername[64]; | char layername[64]; | ||||
| /** Material name. */ | |||||
| char materialname[64]; | |||||
| /** 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; | ||||
| /** Several flags. */ | /** Several flags. */ | ||||
| int flag; | int flag; | ||||
| /** Factor of noise. */ | /** Factor of noise. */ | ||||
| float factor; | float factor; | ||||
| /** How many times apply smooth. */ | /** How many times apply smooth. */ | ||||
| int step; | int step; | ||||
| /** Custom index for passes. */ | /** Custom index for passes. */ | ||||
| int layer_pass; | int layer_pass; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| } SmoothGpencilModifierData; | } SmoothGpencilModifierData; | ||||
| typedef enum eSmoothGpencil_Flag { | typedef enum eSmoothGpencil_Flag { | ||||
| GP_SMOOTH_MOD_LOCATION = (1 << 0), | GP_SMOOTH_MOD_LOCATION = (1 << 0), | ||||
| GP_SMOOTH_MOD_STRENGTH = (1 << 1), | GP_SMOOTH_MOD_STRENGTH = (1 << 1), | ||||
| GP_SMOOTH_MOD_THICKNESS = (1 << 2), | GP_SMOOTH_MOD_THICKNESS = (1 << 2), | ||||
| GP_SMOOTH_INVERT_LAYER = (1 << 3), | GP_SMOOTH_INVERT_LAYER = (1 << 3), | ||||
| GP_SMOOTH_INVERT_PASS = (1 << 4), | GP_SMOOTH_INVERT_PASS = (1 << 4), | ||||
| GP_SMOOTH_INVERT_VGROUP = (1 << 5), | GP_SMOOTH_INVERT_VGROUP = (1 << 5), | ||||
| GP_SMOOTH_MOD_UV = (1 << 6), | GP_SMOOTH_MOD_UV = (1 << 6), | ||||
| GP_SMOOTH_INVERT_LAYERPASS = (1 << 7), | GP_SMOOTH_INVERT_LAYERPASS = (1 << 7), | ||||
| GP_SMOOTH_INVERT_MATERIAL = (1 << 4), | |||||
| } eSmoothGpencil_Flag; | } eSmoothGpencil_Flag; | ||||
| typedef struct ArmatureGpencilModifierData { | typedef struct ArmatureGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| /** Deformflag replaces armature->deformflag. */ | /** Deformflag replaces armature->deformflag. */ | ||||
| short deformflag, multi; | short deformflag, multi; | ||||
| int _pad; | int _pad; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Stored input of previous modifier, for vertexgroup blending. */ | /** Stored input of previous modifier, for vertexgroup blending. */ | ||||
| float *prevCos; | float *prevCos; | ||||
| /** MAX_VGROUP_NAME. */ | /** MAX_VGROUP_NAME. */ | ||||
| char vgname[64]; | char vgname[64]; | ||||
| } ArmatureGpencilModifierData; | } ArmatureGpencilModifierData; | ||||
| #endif /* __DNA_GPENCIL_MODIFIER_TYPES_H__ */ | #endif /* __DNA_GPENCIL_MODIFIER_TYPES_H__ */ | ||||