Blender  V3.3
DNA_world_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
8 #pragma once
9 
10 #include "DNA_ID.h"
11 #include "DNA_defs.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 struct AnimData;
18 struct Ipo;
20 struct bNodeTree;
21 
22 #ifndef MAX_MTEX
23 # define MAX_MTEX 18
24 #endif
25 
29 typedef struct World {
31 
32  ID id;
34  struct AnimData *adt;
35  /* runtime (must be immediately after id for utilities to use it). */
37 
38  char _pad0[4];
39  short texact, mistype;
40 
41  float horr, horg, horb;
42 
47  float exposure, exp, range;
48 
53  short mode;
54  char _pad2[6];
55 
57 
59  float aodist, aoenergy;
60 
62  short flag;
63  char _pad3[6];
64 
66  struct Ipo *ipo DNA_DEPRECATED;
68  char _pad[4];
69 
70  /* previews */
72 
73  /* nodes */
75 
76  /* Lightgroup membership information. */
78 
82 
83 /* **************** WORLD ********************* */
84 
85 /* mode */
86 #define WO_MIST (1 << 0)
87 #define WO_MODE_UNUSED_1 (1 << 1) /* cleared */
88 #define WO_MODE_UNUSED_2 (1 << 2) /* cleared */
89 #define WO_MODE_UNUSED_3 (1 << 3) /* cleared */
90 #define WO_MODE_UNUSED_4 (1 << 4) /* cleared */
91 #define WO_MODE_UNUSED_5 (1 << 5) /* cleared */
92 #define WO_AMB_OCC (1 << 6)
93 #define WO_MODE_UNUSED_7 (1 << 7) /* cleared */
94 
95 enum {
99 };
100 
101 /* flag */
102 #define WO_DS_EXPAND (1 << 0)
103 /* NOTE: this must have the same value as MA_DS_SHOW_TEXS,
104  * otherwise anim-editors will not read correctly
105  */
106 #define WO_DS_SHOW_TEXS (1 << 2)
107 
108 #ifdef __cplusplus
109 }
110 #endif
ID and Library types, which are fundamental for sdna.
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition: DNA_defs.h:64
@ WO_MIST_QUADRATIC
@ WO_MIST_INVERSE_QUADRATIC
@ WO_MIST_LINEAR
Definition: DNA_ID.h:368
char _pad2[6]
struct bNodeTree * nodetree
struct LightgroupMembership * lightgroup
struct PreviewImage * preview
DrawDataList drawdata
float misi
char _pad0[4]
ListBase gpumaterial
char _pad[4]
float horg
float aodist
float exposure
struct AnimData * adt
float range
float aoenergy
float miststa
short use_nodes
short mode
char _pad3[6]
float exp
struct Ipo *ipo DNA_DEPRECATED
short pr_texture
short texact
float horb
short mistype
float mistdist
short flag
float misthi
float horr