Blender V5.0
DNA_world_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12#include "DNA_defs.h"
13
14struct AnimData;
16struct bNodeTree;
17
18#ifndef MAX_MTEX
19# define MAX_MTEX 18
20#endif
21
25typedef struct World {
26#ifdef __cplusplus
29 static constexpr ID_Type id_type = ID_WO;
30#endif
31
34 struct AnimData *adt;
35
36 char _pad0[4];
38
39 float horr, horg, horb;
40
46
51 short mode;
52
54 short flag;
55
57
60
69 float sun_angle;
74
76 short use_nodes DNA_DEPRECATED;
77
78 /* previews */
80
81 /* nodes */
83
86
87 void *_pad1;
88
91 /* The Depsgraph::update_count when this World was last updated. */
93
95
96/* **************** WORLD ********************* */
97
99enum {
100 WO_MIST = 1 << 0,
101 WO_MODE_UNUSED_1 = 1 << 1, /* cleared */
102 WO_MODE_UNUSED_2 = 1 << 2, /* cleared */
103 WO_MODE_UNUSED_3 = 1 << 3, /* cleared */
104 WO_MODE_UNUSED_4 = 1 << 4, /* cleared */
105 WO_MODE_UNUSED_5 = 1 << 5, /* cleared */
106 WO_MODE_UNUSED_6 = 1 << 6, /* cleared */
107 WO_MODE_UNUSED_7 = 1 << 7, /* cleared */
108};
109
111enum {
115};
116
118enum {
119 WO_DS_EXPAND = 1 << 0,
135};
136
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_WO
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition DNA_defs.h:66
@ WO_MIST
@ WO_MODE_UNUSED_6
@ WO_MODE_UNUSED_5
@ WO_MODE_UNUSED_7
@ WO_MODE_UNUSED_2
@ WO_MODE_UNUSED_1
@ WO_MODE_UNUSED_3
@ WO_MODE_UNUSED_4
@ WO_MIST_QUADRATIC
@ WO_MIST_INVERSE_QUADRATIC
@ WO_MIST_LINEAR
@ WO_USE_SUN_SHADOW
@ WO_USE_EEVEE_FINITE_VOLUME
@ WO_DS_EXPAND
@ WO_DS_SHOW_TEXS
@ WO_USE_SUN_SHADOW_JITTER
eLightProbeResolution
@ LIGHT_PROBE_RESOLUTION_128
@ LIGHT_PROBE_RESOLUTION_512
@ LIGHT_PROBE_RESOLUTION_4096
@ LIGHT_PROBE_RESOLUTION_256
@ LIGHT_PROBE_RESOLUTION_2048
@ LIGHT_PROBE_RESOLUTION_1024
unsigned long long int uint64_t
Definition DNA_ID.h:414
struct bNodeTree * nodetree
struct LightgroupMembership * lightgroup
struct PreviewImage * preview
uint64_t last_update
float misi
char _pad0[4]
ListBase gpumaterial
float horg
float aodist
float exposure
struct AnimData * adt
float range
float sun_angle
float aoenergy
float miststa
float sun_shadow_maximum_resolution
short mode
float exp
short pr_texture
short texact
float horb
short mistype
int probe_resolution
float mistdist
float sun_shadow_filter_radius
float sun_shadow_jitter_overblur
float sun_threshold
short use_nodes DNA_DEPRECATED
void * _pad1
short flag
float misthi
float horr