Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpencil_modifier_types.h
| Show First 20 Lines • Show All 446 Lines • ▼ Show 20 Lines | typedef struct BuildGpencilModifierData { | ||||
| short flag; | short flag; | ||||
| /** (eGpencilBuild_Mode) How are strokes ordered. */ | /** (eGpencilBuild_Mode) How are strokes ordered. */ | ||||
| short mode; | short mode; | ||||
| /** (eGpencilBuild_Transition) In what order do stroke points appear/disappear. */ | /** (eGpencilBuild_Transition) In what order do stroke points appear/disappear. */ | ||||
| short transition; | short transition; | ||||
| /** | /** | ||||
| * (eGpencilBuild_TimeAlignment) | * (eBuildGpencil_TimeAlignment) | ||||
| * For the "Concurrent" mode, when should "shorter" strips start/end. | * For the "Concurrent" mode, when should "shorter" strips start/end. | ||||
| */ | */ | ||||
| short time_alignment; | short time_alignment; | ||||
| /* Speed factor for GP_BUILD_TIMEMODE_DRAWSPEED. */ | |||||
| float speed_fac; | |||||
| /* Maxmium time gap between strokes for GP_BUILD_TIMEMODE_DRAWSPEED. */ | |||||
| float speed_maxgap; | |||||
| /* Which time mode should be used. */ | |||||
| short time_mode; | |||||
| char _pad[6]; | |||||
| /** Build origin control object. */ | /** Build origin control object. */ | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Factor of the stroke (used instead of frame evaluation. */ | /** Factor of the stroke (used instead of frame evaluation. */ | ||||
| float percentage_fac; | float percentage_fac; | ||||
| /** Weight fading at the end of the stroke. */ | /** Weight fading at the end of the stroke. */ | ||||
| float fade_fac; | float fade_fac; | ||||
| Show All 26 Lines | typedef enum eBuildGpencil_TimeAlignment { | ||||
| /* All strokes start at same time */ | /* All strokes start at same time */ | ||||
| GP_BUILD_TIMEALIGN_START = 0, | GP_BUILD_TIMEALIGN_START = 0, | ||||
| /* All strokes end at same time */ | /* All strokes end at same time */ | ||||
| GP_BUILD_TIMEALIGN_END = 1, | GP_BUILD_TIMEALIGN_END = 1, | ||||
| /* TODO: Random Offsets, Stretch-to-Fill */ | /* TODO: Random Offsets, Stretch-to-Fill */ | ||||
| } eBuildGpencil_TimeAlignment; | } eBuildGpencil_TimeAlignment; | ||||
| typedef enum eBuildGpencil_TimeMode { | |||||
| /* Use a number of frames build. */ | |||||
| GP_BUILD_TIMEMODE_FRAMES = 0, | |||||
| /* Use manual percentage to build. */ | |||||
| GP_BUILD_TIMEMODE_PERCENTAGE = 1, | |||||
| /* Use factor of recorded speed to build. */ | |||||
| GP_BUILD_TIMEMODE_DRAWSPEED = 2, | |||||
| } eBuildGpencil_TimeMode; | |||||
| typedef enum eBuildGpencil_Flag { | typedef enum eBuildGpencil_Flag { | ||||
| /* Restrict modifier to particular layer/passes? */ | /* Restrict modifier to particular layer/passes? */ | ||||
| GP_BUILD_INVERT_LAYER = (1 << 0), | GP_BUILD_INVERT_LAYER = (1 << 0), | ||||
| GP_BUILD_INVERT_PASS = (1 << 1), | GP_BUILD_INVERT_PASS = (1 << 1), | ||||
| /* Restrict modifier to only operating between the nominated frames */ | /* Restrict modifier to only operating between the nominated frames */ | ||||
| GP_BUILD_RESTRICT_TIME = (1 << 2), | GP_BUILD_RESTRICT_TIME = (1 << 2), | ||||
| GP_BUILD_INVERT_LAYERPASS = (1 << 3), | GP_BUILD_INVERT_LAYERPASS = (1 << 3), | ||||
| GP_BUILD_USE_FADING = (1 << 4), | |||||
| /* Use a percentage instead of frame number to evaluate strokes. */ | |||||
| GP_BUILD_PERCENTAGE = (1 << 4), | |||||
| GP_BUILD_USE_FADING = (1 << 5), | |||||
| } eBuildGpencil_Flag; | } eBuildGpencil_Flag; | ||||
| typedef struct LatticeGpencilModifierData { | typedef struct LatticeGpencilModifierData { | ||||
| GpencilModifierData modifier; | GpencilModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Material for filtering. */ | /** Material for filtering. */ | ||||
| struct Material *material; | struct Material *material; | ||||
| /** Layer name. */ | /** Layer name. */ | ||||
| ▲ Show 20 Lines • Show All 782 Lines • Show Last 20 Lines | |||||