Blender  V2.93
DNA_world_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "DNA_ID.h"
27 #include "DNA_defs.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 struct AnimData;
34 struct Ipo;
35 struct bNodeTree;
36 
37 #ifndef MAX_MTEX
38 # define MAX_MTEX 18
39 #endif
40 
44 typedef struct World {
45  ID id;
47  struct AnimData *adt;
48  /* runtime (must be immediately after id for utilities to use it). */
50 
51  char _pad0[4];
52  short texact, mistype;
53 
54  float horr, horg, horb;
55 
60  float exposure, exp, range;
61 
66  short mode;
67  char _pad2[6];
68 
70 
72  float aodist, aoenergy;
73 
75  short flag;
76  char _pad3[6];
77 
79  struct Ipo *ipo DNA_DEPRECATED;
81  char _pad[4];
82 
83  /* previews */
85 
86  /* nodes */
88 
92 
93 /* **************** WORLD ********************* */
94 
95 /* mode */
96 #define WO_MIST (1 << 0)
97 #define WO_MODE_UNUSED_1 (1 << 1) /* cleared */
98 #define WO_MODE_UNUSED_2 (1 << 2) /* cleared */
99 #define WO_MODE_UNUSED_3 (1 << 3) /* cleared */
100 #define WO_MODE_UNUSED_4 (1 << 4) /* cleared */
101 #define WO_MODE_UNUSED_5 (1 << 5) /* cleared */
102 #define WO_AMB_OCC (1 << 6)
103 #define WO_MODE_UNUSED_7 (1 << 7) /* cleared */
104 
105 enum {
109 };
110 
111 /* flag */
112 #define WO_DS_EXPAND (1 << 0)
113 /* NOTE: this must have the same value as MA_DS_SHOW_TEXS,
114  * otherwise anim-editors will not read correctly
115  */
116 #define WO_DS_SHOW_TEXS (1 << 2)
117 
118 #ifdef __cplusplus
119 }
120 #endif
ID and Library types, which are fundamental for sdna.
@ WO_MIST_QUADRATIC
@ WO_MIST_INVERSE_QUADRATIC
@ WO_MIST_LINEAR
struct World World
Definition: DNA_ID.h:273
char _pad2[6]
struct bNodeTree * nodetree
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