diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-31 16:12:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-31 16:12:28 +0400 |
commit | 744360479060be75df955bef48987324eb8eec58 (patch) | |
tree | 5e64e0ebac4bbc9eef06299c5733a7284fea7ead /source/blender/makesdna | |
parent | 3c194601f47f11f0d8f0c582f01901a089996619 (diff) |
mask object blending and alpha options
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_mask_types.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_mask_types.h b/source/blender/makesdna/DNA_mask_types.h index d427e1561cb..d677239e300 100644 --- a/source/blender/makesdna/DNA_mask_types.h +++ b/source/blender/makesdna/DNA_mask_types.h @@ -108,10 +108,14 @@ typedef struct MaskObject { struct MaskSpline *act_spline; /* active spline */ struct MaskSplinePoint *act_point; /* active point */ + /* blending options */ float alpha; + char blend; + char blend_flag; + //char flag; /* not used yet */ char restrictflag; /* matching 'Object' flag of the same name - eventually use in the outliner */ - char pad[3]; + char pad[1]; } MaskObject; /* MaskParent->flag */ @@ -144,4 +148,16 @@ enum { MASK_DT_WHITE }; +/* maskobj->blend */ +enum { + MASK_BLEND_ADD = 0, + MASK_BLEND_SUBTRACT = 1 +}; + +/* maskobj->blend_flag */ +enum { + MASK_BLENDFLAG_INVERT = (1 << 0) +}; + + #endif // __DNA_MASK_TYPES_H__ |