Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_particle.h
| Show All 22 Lines | |||||
| #ifndef __BKE_PARTICLE_H__ | #ifndef __BKE_PARTICLE_H__ | ||||
| #define __BKE_PARTICLE_H__ | #define __BKE_PARTICLE_H__ | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_buffer.h" | |||||
| #include "DNA_particle_types.h" | #include "DNA_particle_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "BKE_customdata.h" | #include "BKE_customdata.h" | ||||
| struct ParticleKey; | struct ParticleKey; | ||||
| struct ParticleSettings; | struct ParticleSettings; | ||||
| ▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | typedef struct SPHData { | ||||
| float *gravity; | float *gravity; | ||||
| float hfac; | float hfac; | ||||
| /* Average distance to neighbors (other particles in the support domain), | /* Average distance to neighbors (other particles in the support domain), | ||||
| * for calculating the Courant number (adaptive time step). */ | * for calculating the Courant number (adaptive time step). */ | ||||
| int pass; | int pass; | ||||
| float element_size; | float element_size; | ||||
| float flow[3]; | float flow[3]; | ||||
| BLI_Buffer new_springs; | |||||
| /* Integrator callbacks. This allows different SPH implementations. */ | /* Integrator callbacks. This allows different SPH implementations. */ | ||||
| void (*force_cb)(void *sphdata_v, ParticleKey *state, float *force, float *impulse); | void (*force_cb)(void *sphdata_v, ParticleKey *state, float *force, float *impulse); | ||||
| void (*density_cb)(void *rangedata_v, int index, const float co[3], float squared_dist); | void (*density_cb)(void *rangedata_v, int index, const float co[3], float squared_dist); | ||||
| } SPHData; | } SPHData; | ||||
| typedef struct ParticleTexture { | typedef struct ParticleTexture { | ||||
| float ivel; /* used in reset */ | float ivel; /* used in reset */ | ||||
| float time, life, exist, size; /* used in init */ | float time, life, exist, size; /* used in init */ | ||||
| ▲ Show 20 Lines • Show All 511 Lines • Show Last 20 Lines | |||||