Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_pointcache.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
| struct ClothModifierData; | struct ClothModifierData; | ||||
| struct ListBase; | struct ListBase; | ||||
| struct Main; | struct Main; | ||||
| struct Object; | struct Object; | ||||
| struct ParticleKey; | struct ParticleKey; | ||||
| struct ParticleSystem; | struct ParticleSystem; | ||||
| struct PointCache; | struct PointCache; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | |||||
| struct SmokeModifierData; | struct SmokeModifierData; | ||||
| struct SoftBody; | struct SoftBody; | ||||
| struct RigidBodyWorld; | struct RigidBodyWorld; | ||||
| struct OpenVDBReader; | struct OpenVDBReader; | ||||
| struct OpenVDBWriter; | struct OpenVDBWriter; | ||||
| /* temp structure for read/write */ | /* temp structure for read/write */ | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | typedef struct PTCacheID { | ||||
| /* used for setting the current cache from ptcaches list */ | /* used for setting the current cache from ptcaches list */ | ||||
| struct PointCache **cache_ptr; | struct PointCache **cache_ptr; | ||||
| struct ListBase *ptcaches; | struct ListBase *ptcaches; | ||||
| } PTCacheID; | } PTCacheID; | ||||
| typedef struct PTCacheBaker { | typedef struct PTCacheBaker { | ||||
| struct Main *main; | struct Main *main; | ||||
| struct Scene *scene; | struct Scene *scene; | ||||
| struct SceneLayer *scene_layer; | |||||
| int bake; | int bake; | ||||
| int render; | int render; | ||||
| int anim_init; | int anim_init; | ||||
| int quick_step; | int quick_step; | ||||
| struct PTCacheID pid; | struct PTCacheID pid; | ||||
| void (*update_progress)(void *data, float progress, int *cancel); | void (*update_progress)(void *data, float progress, int *cancel); | ||||
| void *bake_job; | void *bake_job; | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
| void BKE_ptcache_free_mem(struct ListBase *mem_cache); | void BKE_ptcache_free_mem(struct ListBase *mem_cache); | ||||
| void BKE_ptcache_free(struct PointCache *cache); | void BKE_ptcache_free(struct PointCache *cache); | ||||
| void BKE_ptcache_free_list(struct ListBase *ptcaches); | void BKE_ptcache_free_list(struct ListBase *ptcaches); | ||||
| struct PointCache *BKE_ptcache_copy_list(struct ListBase *ptcaches_new, const struct ListBase *ptcaches_old, const int flag); | struct PointCache *BKE_ptcache_copy_list(struct ListBase *ptcaches_new, const struct ListBase *ptcaches_old, const int flag); | ||||
| /********************** Baking *********************/ | /********************** Baking *********************/ | ||||
| /* Bakes cache with cache_step sized jumps in time, not accurate but very fast. */ | /* Bakes cache with cache_step sized jumps in time, not accurate but very fast. */ | ||||
| void BKE_ptcache_quick_cache_all(struct Main *bmain, struct Scene *scene); | void BKE_ptcache_quick_cache_all(struct Main *bmain, struct Scene *scene, struct SceneLayer *scene_layer); | ||||
| /* Bake cache or simulate to current frame with settings defined in the baker. */ | /* Bake cache or simulate to current frame with settings defined in the baker. */ | ||||
| void BKE_ptcache_bake(struct PTCacheBaker *baker); | void BKE_ptcache_bake(struct PTCacheBaker *baker); | ||||
| /* Convert disk cache to memory cache. */ | /* Convert disk cache to memory cache. */ | ||||
| void BKE_ptcache_disk_to_mem(struct PTCacheID *pid); | void BKE_ptcache_disk_to_mem(struct PTCacheID *pid); | ||||
| /* Convert memory cache to disk cache. */ | /* Convert memory cache to disk cache. */ | ||||
| Show All 18 Lines | |||||