Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_pointcache_types.h
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| #define BPHYS_DATA_AVELOCITY 4 /* used for particles */ | #define BPHYS_DATA_AVELOCITY 4 /* used for particles */ | ||||
| #define BPHYS_DATA_XCONST 4 /* used for cloth */ | #define BPHYS_DATA_XCONST 4 /* used for cloth */ | ||||
| #define BPHYS_DATA_SIZE 5 | #define BPHYS_DATA_SIZE 5 | ||||
| #define BPHYS_DATA_TIMES 6 | #define BPHYS_DATA_TIMES 6 | ||||
| #define BPHYS_DATA_BOIDS 7 | #define BPHYS_DATA_BOIDS 7 | ||||
| #define BPHYS_TOT_DATA 8 | #define BPHYS_TOT_DATA 8 | ||||
| /* PTCacheExtra->type */ | |||||
| #define BPHYS_EXTRA_FLUID_SPRINGS 1 | #define BPHYS_EXTRA_FLUID_SPRINGS 1 | ||||
| #define BPHYS_EXTRA_CLOTH_ACCELERATION 2 | #define BPHYS_EXTRA_CLOTH_ACCELERATION 2 | ||||
| typedef struct PTCacheExtra { | typedef struct PTCacheExtra { | ||||
| struct PTCacheExtra *next, *prev; | struct PTCacheExtra *next, *prev; | ||||
| unsigned int type, totdata; | unsigned int type, totdata; | ||||
| void *data; | void *data; | ||||
| } PTCacheExtra; | } PTCacheExtra; | ||||
| typedef struct PTCacheArray { | |||||
| struct PTCacheArray *next, *prev; | |||||
| /* Types like CD_PROP_COLOR. */ | |||||
| int data_type; | |||||
| /* Number of elements in `data`. */ | |||||
| unsigned int totdata; | |||||
| /* Custom null-terminated identifier for this array. */ | |||||
| char *identifier; | |||||
| void *data; | |||||
| } PTCacheArray; | |||||
| typedef struct PTCacheMem { | typedef struct PTCacheMem { | ||||
| struct PTCacheMem *next, *prev; | struct PTCacheMem *next, *prev; | ||||
| unsigned int frame, totpoint; | unsigned int frame, totpoint; | ||||
| unsigned int data_types, flag; | unsigned int data_types, flag; | ||||
| /** BPHYS_TOT_DATA. */ | /** BPHYS_TOT_DATA. */ | ||||
| void *data[8]; | void *data[8]; | ||||
| /** BPHYS_TOT_DATA. */ | /** BPHYS_TOT_DATA. */ | ||||
| void *cur[8]; | void *cur[8]; | ||||
| struct ListBase extradata; | struct ListBase extradata; | ||||
| struct ListBase arrays; | |||||
| } PTCacheMem; | } PTCacheMem; | ||||
| typedef struct PointCache { | typedef struct PointCache { | ||||
| struct PointCache *next, *prev; | struct PointCache *next, *prev; | ||||
| /** Generic flag. */ | /** Generic flag. */ | ||||
| int flag; | int flag; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||