1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/**
* $Id$
*/
#ifndef DNA_MODIFIER_TYPES_H
#define DNA_MODIFIER_TYPES_H
typedef enum ModifierType {
eModifierType_None = 0,
eModifierType_Subsurf,
eModifierType_Lattice,
eModifierType_Curve,
eModifierType_Build,
eModifierType_Mirror,
NUM_MODIFIER_TYPES
} ModifierType;
/* These numerical values are explicitly chosen so that
* (mode&1) is true for realtime calc and (mode&2) is true
* for render calc.
*/
typedef enum ModifierMode {
eModifierMode_Disabled = 0,
eModifierMode_OnlyRealtime = 1,
eModifierMode_OnlyRender = 2,
eModifierMode_RealtimeAndRender = 3,
} ModifierMode;
typedef struct ModifierData {
struct ModifierData *next, *prev;
int type, mode;
} ModifierData;
typedef struct SubsurfModifierData {
ModifierData modifier;
short subdivType, levels, renderLevels, pad;
} SubsurfModifierData;
typedef struct LatticeModifierData {
ModifierData modifier;
struct Object *object;
} LatticeModifierData;
typedef struct CurveModifierData {
ModifierData modifier;
struct Object *object;
} CurveModifierData;
typedef struct BuildModifierData {
ModifierData modifier;
float start, length;
int randomize, seed;
} BuildModifierData;
typedef struct MirrorModifierData {
ModifierData modifier;
int axis;
float tolerance;
} MirrorModifierData;
#endif
|