Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-17 01:55:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-17 01:55:47 +0300
commit98f43ba3e4cb0a26eb62ea98e27a313265f8948c (patch)
tree5a54513b8b0cef1b9a66be0cd04bb13d21c78643 /source/blender/makesdna/DNA_world_types.h
parent4e3562f45ad6109fe3913c5ec7b2d5ff9c6f97bc (diff)
Cleanup: use bit-shifted flag definitions in DNA
Diffstat (limited to 'source/blender/makesdna/DNA_world_types.h')
-rw-r--r--source/blender/makesdna/DNA_world_types.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/source/blender/makesdna/DNA_world_types.h b/source/blender/makesdna/DNA_world_types.h
index 0ae9bcd0256..fff949ecbaa 100644
--- a/source/blender/makesdna/DNA_world_types.h
+++ b/source/blender/makesdna/DNA_world_types.h
@@ -134,22 +134,22 @@ typedef struct World {
/* **************** WORLD ********************* */
/* skytype */
-#define WO_SKYBLEND 1
-#define WO_SKYREAL 2
-#define WO_SKYPAPER 4
+#define WO_SKYBLEND (1 << 0)
+#define WO_SKYREAL (1 << 1)
+#define WO_SKYPAPER (1 << 2)
/* while render: */
-#define WO_SKYTEX 8
-#define WO_ZENUP 16
+#define WO_SKYTEX (1 << 3)
+#define WO_ZENUP (1 << 4)
/* mode */
-#define WO_MIST 1
-//#define WO_STARS 2 /* deprecated */
-/*#define WO_DOF 4*/
-#define WO_ACTIVITY_CULLING 8
-#define WO_ENV_LIGHT 16
-#define WO_DBVT_CULLING 32
-#define WO_AMB_OCC 64
-#define WO_INDIRECT_LIGHT 128
+#define WO_MIST (1 << 0)
+//#define WO_STARS (1 << 1) /* deprecated */
+/*#define WO_DOF (1 << 2) */
+#define WO_ACTIVITY_CULLING (1 << 3)
+#define WO_ENV_LIGHT (1 << 4)
+#define WO_DBVT_CULLING (1 << 5)
+#define WO_AMB_OCC (1 << 6)
+#define WO_INDIRECT_LIGHT (1 << 7)
/* aomix */
enum {
@@ -167,9 +167,9 @@ enum {
#define WO_AOSAMP_HAMMERSLEY 2
/* aomode (use distances & random sampling modes) */
-#define WO_AODIST 1
-#define WO_AORNDSMP 2
-#define WO_AOCACHE 4
+#define WO_AODIST (1 << 0)
+#define WO_AORNDSMP (1 << 1)
+#define WO_AOCACHE (1 << 2)
/* aocolor */
#define WO_AOPLAIN 0
@@ -181,17 +181,17 @@ enum {
#define WO_AOGATHER_APPROX 1
/* texco (also in DNA_material_types.h) */
-#define TEXCO_ANGMAP 64
-#define TEXCO_H_SPHEREMAP 256
-#define TEXCO_H_TUBEMAP 1024
-#define TEXCO_EQUIRECTMAP 2048
+#define TEXCO_ANGMAP (1 << 6)
+#define TEXCO_H_SPHEREMAP (1 << 8)
+#define TEXCO_H_TUBEMAP (1 << 10)
+#define TEXCO_EQUIRECTMAP (1 << 11)
/* mapto */
-#define WOMAP_BLEND 1
-#define WOMAP_HORIZ 2
-#define WOMAP_ZENUP 4
-#define WOMAP_ZENDOWN 8
-// #define WOMAP_MIST 16 /* Deprecated */
+#define WOMAP_BLEND (1 << 0)
+#define WOMAP_HORIZ (1 << 1)
+#define WOMAP_ZENUP (1 << 2)
+#define WOMAP_ZENDOWN (1 << 3)
+// #define WOMAP_MIST (1 << 4) /* Deprecated */
/* flag */
#define WO_DS_EXPAND (1<<0)