Blender V5.3
DNA_effect_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
10
11#pragma once
12
13#include "BLI_enum_flags.hh"
14
15namespace blender {
16
17/* Don't forget, new effects also in `writefile.cc` for DNA! */
18
20enum ePartEff_Flag : short {
21 // PAF_UNUSED_0 = 1 << 0, /* DEPRECATED, dirty. */
22 PAF_BSPLINE = 1 << 1,
23 PAF_STATIC = 1 << 2,
24 PAF_FACE = 1 << 3,
25 PAF_ANIMATED = 1 << 4,
27 PAF_UNBORN = 1 << 5,
29 PAF_OFACE = 1 << 6,
31 PAF_SHOWE = 1 << 7,
33 PAF_TRAND = 1 << 8,
35 PAF_EDISTR = 1 << 9,
37 PAF_DIED = 1 << 11,
38};
40
41
42enum ePartEff_Flag2 : short {
43 PAF_TEXTIME = 1, /* Texture timing. */
44};
46
47
48enum eEffect_Type : short {
52};
53
55enum eEffect_Flag : short {
57};
59
60
61enum ePartEff_SType : short {
64};
65
67enum ePartEff_TexMap : short {
71};
72
73struct Effect {
74 struct Effect *next = nullptr, *prev = nullptr;
77 short buttype = 0;
78 char _pad0[2] = {};
79};
80
81struct BuildEff {
82 /* NOTE: match #Effect. */
83 struct BuildEff *next = nullptr, *prev = nullptr;
86 short buttype = 0;
87 /* End header. */
88
89 char _pad0[2] = {};
90
91 float len = 0, sfra = 0;
92};
93
94#
95#
96struct Particle {
97 float co[3] = {}, no[3] = {};
98 float time = 0, lifetime = 0;
99 short mat_nr = 0;
100 char _pad0[2] = {};
101};
102
103struct Collection;
104
105struct PartEff {
106 /* NOTE: match #Effect. */
107 struct PartEff *next = nullptr, *prev = nullptr;
110 short buttype = 0;
111 /* End header. */
112
114 short vertgroup = 0, userjit = 0;
115
116 float sta = 0, end = 0, lifetime = 0;
117 int totpart = 0, totkey = 0, seed = 0;
118
119 float normfac = 0, obfac = 0, randfac = 0, texfac = 0, randlife = 0;
120 float force[3] = {};
121 float damp = 0;
122
123 float nabla = 0, vectsize = 0, maxlen = 0, defvec[3] = {};
124 char _pad[4] = {};
125
126 float mult[4] = {}, life[4] = {};
127 short child[4] = {}, mat[4] = {};
129 short curmult = 0;
130 short staticstep = 0, omat = 0, timetex = 0, speedtex = 0;
132 short disp = 0, vertgroup_v = 0;
133
134 char vgroupname[/*MAX_VGROUP_NAME*/ 64] = "";
135 char vgroupname_v[/*MAX_VGROUP_NAME*/ 64] = "";
137 float imat[4][4] = {};
138
139 Particle *keys = nullptr;
140 struct Collection *group = nullptr;
141};
142
143struct WaveEff {
144 /* NOTE: match #Effect. */
145 struct WaveEff *next = nullptr, *prev = nullptr;
148 short buttype = 0, stype = 0;
149 /* End header. */
150
151 float startx = 0, starty = 0, height = 0, width = 0;
152 float narrow = 0, speed = 0, minfac = 0, damp = 0;
153
154 float timeoffs = 0, lifetime = 0;
155};
156
157} // namespace blender
#define ENUM_OPERATORS(_enum_type)
BMesh Iterators.
struct BuildEff * next
struct BuildEff * prev
struct Effect * next
eEffect_Type type
struct Effect * prev
eEffect_Flag flag
struct Collection * group
ePartEff_TexMap texmap
struct PartEff * next
struct PartEff * prev
ePartEff_SType stype
ePartEff_Flag2 flag2neg
ePartEff_Flag2 flag2
struct WaveEff * next
struct WaveEff * prev