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_CUSTOM_DATA 2 | |||||
| typedef struct PTCacheExtra { | typedef struct PTCacheExtra { | ||||
| struct PTCacheExtra *next, *prev; | struct PTCacheExtra *next, *prev; | ||||
| unsigned int type, totdata; | |||||
| unsigned int type; | |||||
| /* Number of elements in `data`. This is not the number of bytes usually. */ | |||||
| unsigned int totdata; | |||||
| /* Types like CD_PROP_COLOR. This is only used when `type` is BPHYS_EXTRA_CUSTOM_DATA. */ | |||||
| int custom_data_type; | |||||
| int _pad; | |||||
| /* Custom null-terminated identifier for this data. This is only used when `type` is | |||||
| * BPHYS_EXTRA_CUSTOM_DATA. */ | |||||
| char *identifier; | |||||
| /* The actual data that is cached. */ | |||||
| void *data; | void *data; | ||||
| } PTCacheExtra; | } PTCacheExtra; | ||||
| 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; | ||||
| ▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines | |||||