Blender
V2.93
source
blender
makesdna
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). */
49
DrawDataList
drawdata
;
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
69
float
misi
,
miststa
,
mistdist
,
misthi
;
70
72
float
aodist
,
aoenergy
;
73
75
short
flag
;
76
char
_pad3
[6];
77
79
struct
Ipo
*ipo
DNA_DEPRECATED
;
80
short
pr_texture
,
use_nodes
;
81
char
_pad
[4];
82
83
/* previews */
84
struct
PreviewImage
*
preview
;
85
86
/* nodes */
87
struct
bNodeTree
*
nodetree
;
88
90
ListBase
gpumaterial
;
91
}
World
;
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
{
106
WO_MIST_QUADRATIC
= 0,
107
WO_MIST_LINEAR
= 1,
108
WO_MIST_INVERSE_QUADRATIC
= 2,
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
DNA_ID.h
ID and Library types, which are fundamental for sdna.
DNA_defs.h
WO_MIST_QUADRATIC
@ WO_MIST_QUADRATIC
Definition:
DNA_world_types.h:106
WO_MIST_INVERSE_QUADRATIC
@ WO_MIST_INVERSE_QUADRATIC
Definition:
DNA_world_types.h:108
WO_MIST_LINEAR
@ WO_MIST_LINEAR
Definition:
DNA_world_types.h:107
World
struct World World
AnimData
Definition:
DNA_anim_types.h:1083
DrawDataList
Definition:
DNA_ID.h:58
ID
Definition:
DNA_ID.h:273
Ipo
Definition:
DNA_ipo_types.h:99
ListBase
Definition:
DNA_listBase.h:46
PreviewImage
Definition:
DNA_ID.h:389
World
Definition:
DNA_world_types.h:44
World::_pad2
char _pad2[6]
Definition:
DNA_world_types.h:67
World::nodetree
struct bNodeTree * nodetree
Definition:
DNA_world_types.h:87
World::preview
struct PreviewImage * preview
Definition:
DNA_world_types.h:84
World::drawdata
DrawDataList drawdata
Definition:
DNA_world_types.h:49
World::id
ID id
Definition:
DNA_world_types.h:45
World::misi
float misi
Definition:
DNA_world_types.h:69
World::_pad0
char _pad0[4]
Definition:
DNA_world_types.h:51
World::gpumaterial
ListBase gpumaterial
Definition:
DNA_world_types.h:90
World::_pad
char _pad[4]
Definition:
DNA_world_types.h:81
World::horg
float horg
Definition:
DNA_world_types.h:54
World::aodist
float aodist
Definition:
DNA_world_types.h:72
World::exposure
float exposure
Definition:
DNA_world_types.h:60
World::adt
struct AnimData * adt
Definition:
DNA_world_types.h:47
World::range
float range
Definition:
DNA_world_types.h:60
World::aoenergy
float aoenergy
Definition:
DNA_world_types.h:72
World::miststa
float miststa
Definition:
DNA_world_types.h:69
World::use_nodes
short use_nodes
Definition:
DNA_world_types.h:80
World::mode
short mode
Definition:
DNA_world_types.h:66
World::_pad3
char _pad3[6]
Definition:
DNA_world_types.h:76
World::exp
float exp
Definition:
DNA_world_types.h:60
World::DNA_DEPRECATED
struct Ipo *ipo DNA_DEPRECATED
Definition:
DNA_world_types.h:79
World::pr_texture
short pr_texture
Definition:
DNA_world_types.h:80
World::texact
short texact
Definition:
DNA_world_types.h:52
World::horb
float horb
Definition:
DNA_world_types.h:54
World::mistype
short mistype
Definition:
DNA_world_types.h:52
World::mistdist
float mistdist
Definition:
DNA_world_types.h:69
World::flag
short flag
Definition:
DNA_world_types.h:75
World::misthi
float misthi
Definition:
DNA_world_types.h:69
World::horr
float horr
Definition:
DNA_world_types.h:54
bNodeTree
Definition:
DNA_node_types.h:426
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1