Blender V2.61 - r43446
Classes | Defines | Functions | Variables

pointcache.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_cloth_types.h"
#include "DNA_dynamicpaint_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_object_force.h"
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "DNA_smoke_types.h"
#include "BLI_blenlib.h"
#include "BLI_threads.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "PIL_time.h"
#include "WM_api.h"
#include "BKE_anim.h"
#include "BKE_blender.h"
#include "BKE_cloth.h"
#include "BKE_depsgraph.h"
#include "BKE_dynamicpaint.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_scene.h"
#include "BKE_smoke.h"
#include "BKE_softbody.h"
#include "BKE_utildefines.h"
#include "BIK_api.h"
#include "smoke_API.h"
#include <dirent.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  ptcache_bake_data

Defines

#define LZO_OUT_LEN(size)   ((size) + (size) / 16 + 64 + 3)
#define PTCACHE_DATA_FROM(data, type, from)   if(data[type]) { memcpy(data[type], from, ptcache_data_size[type]); }
#define PTCACHE_DATA_TO(data, type, index, to)   if(data[type]) { memcpy(to, (char*)data[type] + (index ? index * ptcache_data_size[type] : 0), ptcache_data_size[type]); }
#define DURIAN_POINTCACHE_LIB_OK   1
#define DPAINT_CACHE_VERSION   "1.01"
#define MAX_PTCACHE_PATH   FILE_MAX
#define MAX_PTCACHE_FILE   ((FILE_MAX)*2)

Functions

static int ptcache_file_compressed_read (PTCacheFile *pf, unsigned char *result, unsigned int len)
static int ptcache_file_compressed_write (PTCacheFile *pf, unsigned char *in, unsigned int in_len, unsigned char *out, int mode)
static int ptcache_file_write (PTCacheFile *pf, const void *f, unsigned int tot, unsigned int size)
static int ptcache_file_read (PTCacheFile *pf, void *f, unsigned int tot, unsigned int size)
static int ptcache_basic_header_read (PTCacheFile *pf)
static int ptcache_basic_header_write (PTCacheFile *pf)
static int ptcache_softbody_write (int index, void *soft_v, void **data, int UNUSED(cfra))
static void ptcache_softbody_read (int index, void *soft_v, void **data, float UNUSED(cfra), float *old_data)
static void ptcache_softbody_interpolate (int index, void *soft_v, void **data, float cfra, float cfra1, float cfra2, float *old_data)
static int ptcache_softbody_totpoint (void *soft_v, int UNUSED(cfra))
void BKE_ptcache_make_particle_key (ParticleKey *key, int index, void **data, float time)
static int ptcache_particle_write (int index, void *psys_v, void **data, int cfra)
static void ptcache_particle_read (int index, void *psys_v, void **data, float cfra, float *old_data)
static void ptcache_particle_interpolate (int index, void *psys_v, void **data, float cfra, float cfra1, float cfra2, float *old_data)
static int ptcache_particle_totpoint (void *psys_v, int UNUSED(cfra))
static int ptcache_particle_totwrite (void *psys_v, int cfra)
static void ptcache_particle_extra_write (void *psys_v, PTCacheMem *pm, int UNUSED(cfra))
static void ptcache_particle_extra_read (void *psys_v, PTCacheMem *pm, float UNUSED(cfra))
static int ptcache_cloth_write (int index, void *cloth_v, void **data, int UNUSED(cfra))
static void ptcache_cloth_read (int index, void *cloth_v, void **data, float UNUSED(cfra), float *old_data)
static void ptcache_cloth_interpolate (int index, void *cloth_v, void **data, float cfra, float cfra1, float cfra2, float *old_data)
static int ptcache_cloth_totpoint (void *cloth_v, int UNUSED(cfra))
static int ptcache_smoke_totpoint (void *UNUSED(smoke_v), int UNUSED(cfra))
static int ptcache_smoke_read (PTCacheFile *UNUSED(pf), void *UNUSED(smoke_v))
static int ptcache_smoke_write (PTCacheFile *UNUSED(pf), void *UNUSED(smoke_v))
static int ptcache_dynamicpaint_totpoint (void *sd, int UNUSED(cfra))
static int ptcache_dynamicpaint_write (PTCacheFile *pf, void *dp_v)
static int ptcache_dynamicpaint_read (PTCacheFile *pf, void *dp_v)
void BKE_ptcache_id_from_softbody (PTCacheID *pid, Object *ob, SoftBody *sb)
void BKE_ptcache_id_from_particles (PTCacheID *pid, Object *ob, ParticleSystem *psys)
void BKE_ptcache_id_from_cloth (PTCacheID *pid, Object *ob, ClothModifierData *clmd)
void BKE_ptcache_id_from_smoke (PTCacheID *pid, struct Object *ob, struct SmokeModifierData *smd)
void BKE_ptcache_id_from_dynamicpaint (PTCacheID *pid, Object *ob, DynamicPaintSurface *surface)
void BKE_ptcache_ids_from_object (ListBase *lb, Object *ob, Scene *scene, int duplis)
static int ptcache_path (PTCacheID *pid, char *filename)
static int ptcache_filename (PTCacheID *pid, char *filename, int cfra, short do_path, short do_ext)
static PTCacheFileptcache_file_open (PTCacheID *pid, int mode, int cfra)
static void ptcache_file_close (PTCacheFile *pf)
static int ptcache_file_data_read (PTCacheFile *pf)
static int ptcache_file_data_write (PTCacheFile *pf)
static int ptcache_file_header_begin_read (PTCacheFile *pf)
static int ptcache_file_header_begin_write (PTCacheFile *pf)
int BKE_ptcache_data_size (int data_type)
static void ptcache_file_pointers_init (PTCacheFile *pf)
int BKE_ptcache_mem_index_find (PTCacheMem *pm, unsigned int index)
void BKE_ptcache_mem_pointers_init (PTCacheMem *pm)
void BKE_ptcache_mem_pointers_incr (PTCacheMem *pm)
int BKE_ptcache_mem_pointers_seek (int point_index, PTCacheMem *pm)
static void ptcache_data_alloc (PTCacheMem *pm)
static void ptcache_data_free (PTCacheMem *pm)
static void ptcache_data_copy (void *from[], void *to[])
static void ptcache_extra_free (PTCacheMem *pm)
static int ptcache_old_elemsize (PTCacheID *pid)
static void ptcache_find_frames_around (PTCacheID *pid, unsigned int frame, int *fra1, int *fra2)
static PTCacheMemptcache_disk_frame_to_mem (PTCacheID *pid, int cfra)
static int ptcache_mem_frame_to_disk (PTCacheID *pid, PTCacheMem *pm)
static int ptcache_read_stream (PTCacheID *pid, int cfra)
static int ptcache_read (PTCacheID *pid, int cfra)
static int ptcache_interpolate (PTCacheID *pid, float cfra, int cfra1, int cfra2)
int BKE_ptcache_read (PTCacheID *pid, float cfra)
static int ptcache_write_stream (PTCacheID *pid, int cfra, int totpoint)
static int ptcache_write (PTCacheID *pid, int cfra, int overwrite)
static int ptcache_write_needed (PTCacheID *pid, int cfra, int *overwrite)
int BKE_ptcache_write (PTCacheID *pid, unsigned int cfra)
void BKE_ptcache_id_clear (PTCacheID *pid, int mode, unsigned int cfra)
int BKE_ptcache_id_exist (PTCacheID *pid, int cfra)
void BKE_ptcache_id_time (PTCacheID *pid, Scene *scene, float cfra, int *startframe, int *endframe, float *timescale)
int BKE_ptcache_id_reset (Scene *scene, PTCacheID *pid, int mode)
int BKE_ptcache_object_reset (Scene *scene, Object *ob, int mode)
void BKE_ptcache_remove (void)
void BKE_ptcache_set_continue_physics (Main *bmain, Scene *scene, int enable)
int BKE_ptcache_get_continue_physics (void)
PointCacheBKE_ptcache_add (ListBase *ptcaches)
void BKE_ptcache_free_mem (ListBase *mem_cache)
void BKE_ptcache_free (PointCache *cache)
void BKE_ptcache_free_list (ListBase *ptcaches)
static PointCacheptcache_copy (PointCache *cache)
PointCacheBKE_ptcache_copy_list (ListBase *ptcaches_new, ListBase *ptcaches_old)
void BKE_ptcache_quick_cache_all (Main *bmain, Scene *scene)
static void ptcache_dt_to_str (char *str, double dtime)
static void * ptcache_bake_thread (void *ptr)
void BKE_ptcache_bake (PTCacheBaker *baker)
void BKE_ptcache_disk_to_mem (PTCacheID *pid)
void BKE_ptcache_mem_to_disk (PTCacheID *pid)
void BKE_ptcache_toggle_disk_cache (PTCacheID *pid)
void BKE_ptcache_disk_cache_rename (PTCacheID *pid, const char *name_src, const char *name_dst)
void BKE_ptcache_load_external (PTCacheID *pid)
void BKE_ptcache_update_info (PTCacheID *pid)
void BKE_ptcache_validate (PointCache *cache, int framenr)
void BKE_ptcache_invalidate (PointCache *cache)

Variables

static int ptcache_data_size []
static int ptcache_extra_datasize []
static int CONTINUE_PHYSICS = 0

Detailed Description

Definition in file pointcache.c.


Define Documentation

#define DPAINT_CACHE_VERSION   "1.01"

Definition at line 672 of file pointcache.c.

Referenced by ptcache_dynamicpaint_read(), and ptcache_dynamicpaint_write().

#define DURIAN_POINTCACHE_LIB_OK   1

Definition at line 104 of file pointcache.c.

#define LZO_OUT_LEN (   size)    ((size) + (size) / 16 + 64 + 3)
#define MAX_PTCACHE_FILE   ((FILE_MAX)*2)
#define MAX_PTCACHE_PATH   FILE_MAX
#define PTCACHE_DATA_FROM (   data,
  type,
  from 
)    if(data[type]) { memcpy(data[type], from, ptcache_data_size[type]); }
#define PTCACHE_DATA_TO (   data,
  type,
  index,
  to 
)    if(data[type]) { memcpy(to, (char*)data[type] + (index ? index * ptcache_data_size[type] : 0), ptcache_data_size[type]); }

Function Documentation

PointCache* BKE_ptcache_add ( ListBase ptcaches) [read]
void BKE_ptcache_bake ( PTCacheBaker baker)

Definition at line 2758 of file pointcache.c.

References PTCacheBaker::anim_init, PTCacheBaker::bake, BKE_ptcache_id_clear(), BKE_ptcache_ids_from_object(), BKE_ptcache_write(), blender_test_break(), BLI_end_threads(), BLI_freelistN(), BLI_init_threads(), BLI_insert_thread(), ptcache_bake_data::break_operation, PTCacheID::cache, PTCacheID::calldata, CFRA, ptcache_bake_data::cfra_ptr, PointCache::endframe, ptcache_bake_data::endframe, FALSE, ListBase::first, PointCache::flag, RenderData::framelen, G, PointCache::last_exact, Scene::lay, ptcache_bake_data::main, PTCacheBaker::main, MAX2, MAX_DUPLI_RECUR, MAXFRAME, MIN2, PTCacheID::next, NULL, PTCacheID::ob, Base::object, ParticleSystem::part, PART_EMITTER, PART_HAIR, PART_PHYS_KEYED, ParticleSettings::phystype, PTCacheBaker::pid, PIL_sleep_ms(), PTCacheBaker::progressbar, PTCacheBaker::progresscontext, PTCacheBaker::progressend, psys_get_pointcache_start_end(), ptcache_bake_thread(), PTCACHE_BAKED, PTCACHE_BAKING, PTCACHE_CLEAR_ALL, PTCACHE_DISK_CACHE, PTCACHE_OUTDATED, PTCACHE_QUICK_CACHE, PTCACHE_REDO_NEEDED, PTCACHE_SIMULATION_VALID, PTCACHE_TYPE_PARTICLES, PTCACHE_TYPE_SMOKE_DOMAIN, PTCACHE_TYPE_SMOKE_HIGHRES, PTCacheBaker::quick_step, Scene::r, PTCacheBaker::render, addon::engine::render(), ptcache_bake_data::scene, PTCacheBaker::scene, scene_update_for_newframe(), SETLOOPER, RenderData::sfra, PointCache::startframe, ptcache_bake_data::step, ptcache_bake_data::thread_ended, threads, TRUE, ParticleSettings::type, PTCacheID::type, and WM_cursor_wait().

Referenced by BKE_ptcache_quick_cache_all(), ptcache_bake_all_exec(), ptcache_bake_exec(), and update_physics_cache().

PointCache* BKE_ptcache_copy_list ( ListBase ptcaches_new,
ListBase ptcaches_old 
) [read]
int BKE_ptcache_data_size ( int  data_type)

Definition at line 1346 of file pointcache.c.

References ptcache_data_size.

Referenced by direct_link_pointcache().

void BKE_ptcache_disk_cache_rename ( PTCacheID pid,
const char *  name_src,
const char *  name_dst 
)
void BKE_ptcache_disk_to_mem ( PTCacheID pid)
void BKE_ptcache_free ( PointCache cache)
void BKE_ptcache_free_list ( ListBase ptcaches)
void BKE_ptcache_free_mem ( ListBase mem_cache)
int BKE_ptcache_get_continue_physics ( void  )
void BKE_ptcache_id_clear ( PTCacheID pid,
int  mode,
unsigned int  cfra 
)
int BKE_ptcache_id_exist ( PTCacheID pid,
int  cfra 
)
void BKE_ptcache_id_from_cloth ( PTCacheID pid,
Object ob,
ClothModifierData clmd 
)
void BKE_ptcache_id_from_dynamicpaint ( PTCacheID pid,
Object ob,
DynamicPaintSurface surface 
)
void BKE_ptcache_id_from_particles ( PTCacheID pid,
Object ob,
ParticleSystem psys 
)

Definition at line 777 of file pointcache.c.

References ParticleSettings::avefac, ParticleSettings::avemode, BPHYS_DATA_AVELOCITY, BPHYS_DATA_BOIDS, BPHYS_DATA_INDEX, BPHYS_DATA_LOCATION, BPHYS_DATA_ROTATION, BPHYS_DATA_TIMES, BPHYS_DATA_VELOCITY, PTCacheID::cache, PTCacheID::cache_ptr, PTCacheID::calldata, PTCacheID::data_types, PTCacheID::default_step, ParticleSettings::flag, SPHFluidSettings::flag, PTCacheID::flag, ParticleSettings::fluid, PointCache::index, PTCacheID::info_types, PTCacheID::interpolate_extra_data, PTCacheID::interpolate_point, PTCacheID::max_step, NULL, PTCacheID::ob, ParticleSystem::part, PART_AVE_SPIN, PART_HAIR, PART_PHYS_BOIDS, PART_PHYS_FLUID, PART_ROT_DYN, PART_ROT_VEL, ParticleSettings::phystype, ParticleSystem::pointcache, ptcache_basic_header_read(), ptcache_basic_header_write(), ptcache_particle_extra_read(), ptcache_particle_extra_write(), ptcache_particle_interpolate(), ptcache_particle_read(), ptcache_particle_totpoint(), ptcache_particle_totwrite(), ptcache_particle_write(), PTCACHE_TYPE_PARTICLES, PTCACHE_VEL_PER_SEC, ParticleSystem::ptcaches, PTCacheID::ptcaches, PTCacheID::read_extra_data, PTCacheID::read_header, PTCacheID::read_point, PTCacheID::read_stream, ParticleSettings::rotmode, SPH_VISCOELASTIC_SPRINGS, PTCacheID::stack_index, PTCacheID::totpoint, PTCacheID::totwrite, ParticleSettings::type, PTCacheID::type, PTCacheID::write_extra_data, PTCacheID::write_header, PTCacheID::write_point, and PTCacheID::write_stream.

Referenced by BKE_ptcache_ids_from_object(), BKE_ptcache_object_reset(), psys_changed_type(), psys_make_temp_pointcache(), psys_prepare_physics(), and system_step().

void BKE_ptcache_id_from_smoke ( PTCacheID pid,
struct Object ob,
struct SmokeModifierData smd 
)
void BKE_ptcache_id_from_softbody ( PTCacheID pid,
Object ob,
SoftBody sb 
)
int BKE_ptcache_id_reset ( Scene scene,
PTCacheID pid,
int  mode 
)
void BKE_ptcache_id_time ( PTCacheID pid,
Scene scene,
float  cfra,
int *  startframe,
int *  endframe,
float *  timescale 
)
void BKE_ptcache_ids_from_object ( ListBase lb,
Object ob,
Scene scene,
int  duplis 
)
void BKE_ptcache_invalidate ( PointCache cache)
void BKE_ptcache_load_external ( PTCacheID pid)
void BKE_ptcache_make_particle_key ( ParticleKey key,
int  index,
void **  data,
float  time 
)
int BKE_ptcache_mem_index_find ( PTCacheMem pm,
unsigned int  index 
)
void BKE_ptcache_mem_pointers_incr ( PTCacheMem pm)
void BKE_ptcache_mem_pointers_init ( PTCacheMem pm)
int BKE_ptcache_mem_pointers_seek ( int  point_index,
PTCacheMem pm 
)
void BKE_ptcache_mem_to_disk ( PTCacheID pid)
int BKE_ptcache_object_reset ( Scene scene,
Object ob,
int  mode 
)
void BKE_ptcache_quick_cache_all ( Main bmain,
Scene scene 
)
int BKE_ptcache_read ( PTCacheID pid,
float  cfra 
)
void BKE_ptcache_remove ( void  )
void BKE_ptcache_set_continue_physics ( Main bmain,
Scene scene,
int  enable 
)
void BKE_ptcache_toggle_disk_cache ( PTCacheID pid)
void BKE_ptcache_update_info ( PTCacheID pid)
void BKE_ptcache_validate ( PointCache cache,
int  framenr 
)
int BKE_ptcache_write ( PTCacheID pid,
unsigned int  cfra 
)
static void* ptcache_bake_thread ( void *  ptr) [static]
static int ptcache_basic_header_read ( PTCacheFile pf) [static]
static int ptcache_basic_header_write ( PTCacheFile pf) [static]
static void ptcache_cloth_interpolate ( int  index,
void *  cloth_v,
void **  data,
float  cfra,
float  cfra1,
float  cfra2,
float *  old_data 
) [static]
static void ptcache_cloth_read ( int  index,
void *  cloth_v,
void **  data,
float   UNUSEDcfra,
float *  old_data 
) [static]
static int ptcache_cloth_totpoint ( void *  cloth_v,
int   UNUSEDcfra 
) [static]

Definition at line 513 of file pointcache.c.

References ClothModifierData::clothObject, and Cloth::numverts.

Referenced by BKE_ptcache_id_from_cloth().

static int ptcache_cloth_write ( int  index,
void *  cloth_v,
void **  data,
int   UNUSEDcfra 
) [static]
static PointCache* ptcache_copy ( PointCache cache) [static]
static void ptcache_data_alloc ( PTCacheMem pm) [static]
static void ptcache_data_copy ( void *  from[],
void *  to[] 
) [static]

Definition at line 1455 of file pointcache.c.

References BPHYS_TOT_DATA, i, and ptcache_data_size.

Referenced by ptcache_disk_frame_to_mem(), and ptcache_mem_frame_to_disk().

static void ptcache_data_free ( PTCacheMem pm) [static]
static PTCacheMem* ptcache_disk_frame_to_mem ( PTCacheID pid,
int  cfra 
) [static]
static void ptcache_dt_to_str ( char *  str,
double  dtime 
) [static]

Definition at line 2701 of file pointcache.c.

Referenced by ptcache_bake_thread().

static int ptcache_dynamicpaint_read ( PTCacheFile pf,
void *  dp_v 
) [static]
static int ptcache_dynamicpaint_totpoint ( void *  sd,
int   UNUSEDcfra 
) [static]
static int ptcache_dynamicpaint_write ( PTCacheFile pf,
void *  dp_v 
) [static]
static void ptcache_extra_free ( PTCacheMem pm) [static]
static void ptcache_file_close ( PTCacheFile pf) [static]
static int ptcache_file_compressed_read ( PTCacheFile pf,
unsigned char *  result,
unsigned int  len 
) [static]
static int ptcache_file_compressed_write ( PTCacheFile pf,
unsigned char *  in,
unsigned int  in_len,
unsigned char *  out,
int  mode 
) [static]
static int ptcache_file_data_read ( PTCacheFile pf) [static]
static int ptcache_file_data_write ( PTCacheFile pf) [static]
static int ptcache_file_header_begin_read ( PTCacheFile pf) [static]
static int ptcache_file_header_begin_write ( PTCacheFile pf) [static]
static PTCacheFile* ptcache_file_open ( PTCacheID pid,
int  mode,
int  cfra 
) [static]
static void ptcache_file_pointers_init ( PTCacheFile pf) [static]
static int ptcache_file_read ( PTCacheFile pf,
void *  f,
unsigned int  tot,
unsigned int  size 
) [static]
static int ptcache_file_write ( PTCacheFile pf,
const void *  f,
unsigned int  tot,
unsigned int  size 
) [static]
static int ptcache_filename ( PTCacheID pid,
char *  filename,
int  cfra,
short  do_path,
short  do_ext 
) [static]
static void ptcache_find_frames_around ( PTCacheID pid,
unsigned int  frame,
int *  fra1,
int *  fra2 
) [static]
static int ptcache_interpolate ( PTCacheID pid,
float  cfra,
int  cfra1,
int  cfra2 
) [static]
static int ptcache_mem_frame_to_disk ( PTCacheID pid,
PTCacheMem pm 
) [static]
static int ptcache_old_elemsize ( PTCacheID pid) [static]
static void ptcache_particle_extra_read ( void *  psys_v,
PTCacheMem pm,
float   UNUSEDcfra 
) [static]
static void ptcache_particle_extra_write ( void *  psys_v,
PTCacheMem pm,
int   UNUSEDcfra 
) [static]
static void ptcache_particle_interpolate ( int  index,
void *  psys_v,
void **  data,
float  cfra,
float  cfra1,
float  cfra2,
float *  old_data 
) [static]
static void ptcache_particle_read ( int  index,
void *  psys_v,
void **  data,
float  cfra,
float *  old_data 
) [static]
static int ptcache_particle_totpoint ( void *  psys_v,
int   UNUSEDcfra 
) [static]

Definition at line 385 of file pointcache.c.

References ParticleSystem::totpart.

Referenced by BKE_ptcache_id_from_particles().

static int ptcache_particle_totwrite ( void *  psys_v,
int  cfra 
) [static]
static int ptcache_particle_write ( int  index,
void *  psys_v,
void **  data,
int  cfra 
) [static]
static int ptcache_path ( PTCacheID pid,
char *  filename 
) [static]
static int ptcache_read ( PTCacheID pid,
int  cfra 
) [static]
static int ptcache_read_stream ( PTCacheID pid,
int  cfra 
) [static]
static int ptcache_smoke_read ( PTCacheFile UNUSEDpf,
void *  UNUSEDsmoke_v 
) [static]

Definition at line 660 of file pointcache.c.

Referenced by BKE_ptcache_id_from_smoke().

static int ptcache_smoke_totpoint ( void *  UNUSEDsmoke_v,
int   UNUSEDcfra 
) [static]

Definition at line 659 of file pointcache.c.

Referenced by BKE_ptcache_id_from_smoke().

static int ptcache_smoke_write ( PTCacheFile UNUSEDpf,
void *  UNUSEDsmoke_v 
) [static]

Definition at line 661 of file pointcache.c.

Referenced by BKE_ptcache_id_from_smoke().

static void ptcache_softbody_interpolate ( int  index,
void *  soft_v,
void **  data,
float  cfra,
float  cfra1,
float  cfra2,
float *  old_data 
) [static]
static void ptcache_softbody_read ( int  index,
void *  soft_v,
void **  data,
float   UNUSEDcfra,
float *  old_data 
) [static]
static int ptcache_softbody_totpoint ( void *  soft_v,
int   UNUSEDcfra 
) [static]

Definition at line 210 of file pointcache.c.

References SoftBody::totpoint.

Referenced by BKE_ptcache_id_from_softbody().

static int ptcache_softbody_write ( int  index,
void *  soft_v,
void **  data,
int   UNUSEDcfra 
) [static]
static int ptcache_write ( PTCacheID pid,
int  cfra,
int  overwrite 
) [static]
static int ptcache_write_needed ( PTCacheID pid,
int  cfra,
int *  overwrite 
) [static]
static int ptcache_write_stream ( PTCacheID pid,
int  cfra,
int  totpoint 
) [static]

Variable Documentation

int CONTINUE_PHYSICS = 0 [static]

Definition at line 2565 of file pointcache.c.

Referenced by BKE_ptcache_get_continue_physics().

int ptcache_data_size[] [static]
Initial value:
 {  
        sizeof(unsigned int), 
        3 * sizeof(float), 
        3 * sizeof(float), 
        4 * sizeof(float), 
        3 * sizeof(float), 
        sizeof(float), 
        3 * sizeof(float), 
        sizeof(BoidData) 
}

Definition at line 106 of file pointcache.c.

Referenced by BKE_ptcache_data_size(), BKE_ptcache_mem_pointers_incr(), BKE_ptcache_mem_pointers_seek(), ptcache_data_alloc(), ptcache_data_copy(), ptcache_disk_frame_to_mem(), ptcache_file_data_read(), ptcache_file_data_write(), and ptcache_mem_frame_to_disk().

int ptcache_extra_datasize[] [static]
Initial value:
 {
    0,
    sizeof(ParticleSpring)
}

Definition at line 117 of file pointcache.c.

Referenced by ptcache_disk_frame_to_mem(), ptcache_mem_frame_to_disk(), and ptcache_particle_extra_write().