Blender
V3.3
source
blender
makesdna
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
;
19
struct
LightgroupMembership
;
20
struct
bNodeTree
;
21
22
#ifndef MAX_MTEX
23
# define MAX_MTEX 18
24
#endif
25
29
typedef
struct
World
{
30
DNA_DEFINE_CXX_METHODS
(
World
)
31
32
ID
id
;
34
struct
AnimData
*
adt
;
35
/* runtime (must be immediately after id for utilities to use it). */
36
DrawDataList
drawdata
;
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
56
float
misi
,
miststa
,
mistdist
,
misthi
;
57
59
float
aodist
,
aoenergy
;
60
62
short
flag
;
63
char
_pad3
[6];
64
66
struct
Ipo
*ipo
DNA_DEPRECATED
;
67
short
pr_texture
,
use_nodes
;
68
char
_pad
[4];
69
70
/* previews */
71
struct
PreviewImage
*
preview
;
72
73
/* nodes */
74
struct
bNodeTree
*
nodetree
;
75
76
/* Lightgroup membership information. */
77
struct
LightgroupMembership
*
lightgroup
;
78
80
ListBase
gpumaterial
;
81
}
World
;
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
{
96
WO_MIST_QUADRATIC
= 0,
97
WO_MIST_LINEAR
= 1,
98
WO_MIST_INVERSE_QUADRATIC
= 2,
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
DNA_ID.h
ID and Library types, which are fundamental for sdna.
DNA_defs.h
DNA_DEFINE_CXX_METHODS
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition:
DNA_defs.h:64
WO_MIST_QUADRATIC
@ WO_MIST_QUADRATIC
Definition:
DNA_world_types.h:96
WO_MIST_INVERSE_QUADRATIC
@ WO_MIST_INVERSE_QUADRATIC
Definition:
DNA_world_types.h:98
WO_MIST_LINEAR
@ WO_MIST_LINEAR
Definition:
DNA_world_types.h:97
AnimData
Definition:
DNA_anim_types.h:1068
DrawDataList
Definition:
DNA_ID.h:43
ID
Definition:
DNA_ID.h:368
Ipo
Definition:
DNA_ipo_types.h:84
LightgroupMembership
Definition:
DNA_layer_types.h:138
ListBase
Definition:
DNA_listBase.h:30
PreviewImage
Definition:
DNA_ID.h:529
World
Definition:
DNA_world_types.h:29
World::_pad2
char _pad2[6]
Definition:
DNA_world_types.h:54
World::nodetree
struct bNodeTree * nodetree
Definition:
DNA_world_types.h:74
World::lightgroup
struct LightgroupMembership * lightgroup
Definition:
DNA_world_types.h:77
World::preview
struct PreviewImage * preview
Definition:
DNA_world_types.h:71
World::drawdata
DrawDataList drawdata
Definition:
DNA_world_types.h:36
World::misi
float misi
Definition:
DNA_world_types.h:56
World::_pad0
char _pad0[4]
Definition:
DNA_world_types.h:38
World::gpumaterial
ListBase gpumaterial
Definition:
DNA_world_types.h:80
World::_pad
char _pad[4]
Definition:
DNA_world_types.h:68
World::horg
float horg
Definition:
DNA_world_types.h:41
World::aodist
float aodist
Definition:
DNA_world_types.h:59
World::exposure
float exposure
Definition:
DNA_world_types.h:47
World::adt
struct AnimData * adt
Definition:
DNA_world_types.h:34
World::range
float range
Definition:
DNA_world_types.h:47
World::aoenergy
float aoenergy
Definition:
DNA_world_types.h:59
World::miststa
float miststa
Definition:
DNA_world_types.h:56
World::use_nodes
short use_nodes
Definition:
DNA_world_types.h:67
World::mode
short mode
Definition:
DNA_world_types.h:53
World::_pad3
char _pad3[6]
Definition:
DNA_world_types.h:63
World::exp
float exp
Definition:
DNA_world_types.h:47
World::DNA_DEPRECATED
struct Ipo *ipo DNA_DEPRECATED
Definition:
DNA_world_types.h:66
World::pr_texture
short pr_texture
Definition:
DNA_world_types.h:67
World::texact
short texact
Definition:
DNA_world_types.h:39
World::horb
float horb
Definition:
DNA_world_types.h:41
World::mistype
short mistype
Definition:
DNA_world_types.h:39
World::mistdist
float mistdist
Definition:
DNA_world_types.h:56
World::flag
short flag
Definition:
DNA_world_types.h:62
World::misthi
float misthi
Definition:
DNA_world_types.h:56
World::horr
float horr
Definition:
DNA_world_types.h:41
bNodeTree
Definition:
DNA_node_types.h:451
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1