diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-17 01:55:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-17 01:55:47 +0300 |
commit | 98f43ba3e4cb0a26eb62ea98e27a313265f8948c (patch) | |
tree | 5a54513b8b0cef1b9a66be0cd04bb13d21c78643 /source/blender/makesdna/DNA_lamp_types.h | |
parent | 4e3562f45ad6109fe3913c5ec7b2d5ff9c6f97bc (diff) |
Cleanup: use bit-shifted flag definitions in DNA
Diffstat (limited to 'source/blender/makesdna/DNA_lamp_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_lamp_types.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/makesdna/DNA_lamp_types.h b/source/blender/makesdna/DNA_lamp_types.h index ca1a07fbcae..9f1b404e151 100644 --- a/source/blender/makesdna/DNA_lamp_types.h +++ b/source/blender/makesdna/DNA_lamp_types.h @@ -116,11 +116,11 @@ typedef struct Lamp { /* **************** LAMP ********************* */ /* flag */ -#define LA_DS_EXPAND 1 +#define LA_DS_EXPAND (1 << 0) /* NOTE: this must have the same value as MA_DS_SHOW_TEXS, * otherwise anim-editors will not read correctly */ -#define LA_DS_SHOW_TEXS 4 +#define LA_DS_SHOW_TEXS (1 << 2) /* type */ #define LA_LOCAL 0 @@ -158,8 +158,8 @@ typedef struct Lamp { #define LA_LAYER_SHADOW_RECEIVE 2 /* sun effect type*/ -#define LA_SUN_EFFECT_SKY 1 -#define LA_SUN_EFFECT_AP 2 +#define LA_SUN_EFFECT_SKY (1 << 0) +#define LA_SUN_EFFECT_AP (1 << 1) /* falloff_type */ #define LA_FALLOFF_CONSTANT 0 @@ -177,8 +177,8 @@ typedef struct Lamp { #define LA_SHADBUF_DEEP 3 /* bufflag, auto clipping */ -#define LA_SHADBUF_AUTO_START 1 -#define LA_SHADBUF_AUTO_END 2 +#define LA_SHADBUF_AUTO_START (1 << 0) +#define LA_SHADBUF_AUTO_END (1 << 1) /* filtertype */ #define LA_SHADBUF_BOX 0 @@ -198,14 +198,14 @@ typedef struct Lamp { /* ray_samp_type */ -// #define LA_SAMP_ROUND 1 // UNUSED -#define LA_SAMP_UMBRA 2 -#define LA_SAMP_DITHER 4 -#define LA_SAMP_JITTER 8 +// #define LA_SAMP_ROUND (1 << 0) // UNUSED +#define LA_SAMP_UMBRA (1 << 1) +#define LA_SAMP_DITHER (1 << 2) +#define LA_SAMP_JITTER (1 << 3) /* mapto */ -#define LAMAP_COL 1 -#define LAMAP_SHAD 2 +#define LAMAP_COL (1 << 0) +#define LAMAP_SHAD (1 << 1) /* shadowmap_type */ #define LA_SHADMAP_SIMPLE 0 |