Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_particle.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
| struct LinkNode; | struct LinkNode; | ||||
| struct KDTree; | struct KDTree; | ||||
| struct RNG; | struct RNG; | ||||
| struct BVHTreeRay; | struct BVHTreeRay; | ||||
| struct BVHTreeRayHit; | struct BVHTreeRayHit; | ||||
| struct EdgeHash; | struct EdgeHash; | ||||
| struct EvaluationContext; | struct EvaluationContext; | ||||
| struct ViewLayer; | struct ViewLayer; | ||||
| struct WorkSpace; | |||||
| #define PARTICLE_COLLISION_MAX_COLLISIONS 10 | #define PARTICLE_COLLISION_MAX_COLLISIONS 10 | ||||
| #define PARTICLE_P ParticleData * pa; int p | #define PARTICLE_P ParticleData * pa; int p | ||||
| #define LOOP_PARTICLES for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) | #define LOOP_PARTICLES for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) | ||||
| #define LOOP_EXISTING_PARTICLES for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) if (!(pa->flag & PARS_UNEXIST)) | #define LOOP_EXISTING_PARTICLES for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) if (!(pa->flag & PARS_UNEXIST)) | ||||
| #define LOOP_SHOWN_PARTICLES for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) if (!(pa->flag & (PARS_UNEXIST | PARS_NO_DISP))) | #define LOOP_SHOWN_PARTICLES for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) if (!(pa->flag & (PARS_UNEXIST | PARS_NO_DISP))) | ||||
| /* OpenMP: Can only advance one variable within loop definition. */ | /* OpenMP: Can only advance one variable within loop definition. */ | ||||
| ▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | |||||
| CustomDataMask psys_emitter_customdata_mask(struct ParticleSystem *psys); | CustomDataMask psys_emitter_customdata_mask(struct ParticleSystem *psys); | ||||
| void psys_particle_on_emitter(struct ParticleSystemModifierData *psmd, int distr, int index, int index_dmcache, | void psys_particle_on_emitter(struct ParticleSystemModifierData *psmd, int distr, int index, int index_dmcache, | ||||
| float fuv[4], float foffset, float vec[3], float nor[3], | float fuv[4], float foffset, float vec[3], float nor[3], | ||||
| float utan[3], float vtan[3], float orco[3], float ornor[3]); | float utan[3], float vtan[3], float orco[3], float ornor[3]); | ||||
| struct ParticleSystemModifierData *psys_get_modifier(struct Object *ob, struct ParticleSystem *psys); | struct ParticleSystemModifierData *psys_get_modifier(struct Object *ob, struct ParticleSystem *psys); | ||||
| struct ModifierData *object_add_particle_system(struct Scene *scene, struct Object *ob, const char *name); | struct ModifierData *object_add_particle_system(struct Scene *scene, struct Object *ob, const char *name); | ||||
| void object_remove_particle_system(struct Scene *scene, struct Object *ob); | void object_remove_particle_system(struct Scene *scene, struct Object *ob, struct WorkSpace *workspace); | ||||
| struct ParticleSettings *psys_new_settings(const char *name, struct Main *main); | struct ParticleSettings *psys_new_settings(const char *name, struct Main *main); | ||||
| void BKE_particlesettings_copy_data( | void BKE_particlesettings_copy_data( | ||||
| struct Main *bmain, struct ParticleSettings *part_dst, const struct ParticleSettings *part_src, | struct Main *bmain, struct ParticleSettings *part_dst, const struct ParticleSettings *part_src, | ||||
| const int flag); | const int flag); | ||||
| struct ParticleSettings *BKE_particlesettings_copy(struct Main *bmain, const struct ParticleSettings *part); | struct ParticleSettings *BKE_particlesettings_copy(struct Main *bmain, const struct ParticleSettings *part); | ||||
| void BKE_particlesettings_make_local(struct Main *bmain, struct ParticleSettings *part, const bool lib_local); | void BKE_particlesettings_make_local(struct Main *bmain, struct ParticleSettings *part, const bool lib_local); | ||||
| void psys_reset(struct ParticleSystem *psys, int mode); | void psys_reset(struct ParticleSystem *psys, int mode); | ||||
| ▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines | |||||