diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-09-13 20:45:58 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:00 +0300 |
commit | 0d60337a83463cbd658038eed5f8efa2fa8a4de6 (patch) | |
tree | ae506199314d73627d8b47c65250760939b16dc8 /source/blender/physics/BPH_mass_spring.h | |
parent | 5322def57cdbb81d38c5ba8e8e617c697791d22b (diff) |
Renamed functions to make them explicitly refer to cloth, and split the
create/free functions for solver data off from the cloth solver.
Diffstat (limited to 'source/blender/physics/BPH_mass_spring.h')
-rw-r--r-- | source/blender/physics/BPH_mass_spring.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/physics/BPH_mass_spring.h b/source/blender/physics/BPH_mass_spring.h index 2960082852f..8382d0befe7 100644 --- a/source/blender/physics/BPH_mass_spring.h +++ b/source/blender/physics/BPH_mass_spring.h @@ -28,10 +28,15 @@ #ifndef __BPH_MASS_SPRING_H__ #define __BPH_MASS_SPRING_H__ -int implicit_init (struct Object *ob, struct ClothModifierData *clmd ); -int implicit_free (struct ClothModifierData *clmd ); -int implicit_solver (struct Object *ob, float frame, struct ClothModifierData *clmd, struct ListBase *effectors ); -void implicit_set_positions (struct ClothModifierData *clmd ); +struct Implicit_Data; + +struct Implicit_Data *BPH_mass_spring_solver_create(int numverts, int numsprings); +void BPH_mass_spring_solver_free(struct Implicit_Data *id); + +int BPH_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd); +void BPH_cloth_solver_free(struct ClothModifierData *clmd); +int BPH_cloth_solve(struct Object *ob, float frame, struct ClothModifierData *clmd, struct ListBase *effectors); +void BKE_cloth_solver_set_positions (struct ClothModifierData *clmd ); bool implicit_hair_volume_get_texture_data(struct Object *UNUSED(ob), struct ClothModifierData *clmd, struct ListBase *UNUSED(effectors), struct VoxelData *vd); |