Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2014-09-14 15:23:14 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:30:00 +0300
commitd2e8a72d8a275d8805826e8b6481f9f3463ec241 (patch)
tree1d9041999fbe91298e55106a4612322029758a7c /source/blender/physics/BPH_mass_spring.h
parent0d60337a83463cbd658038eed5f8efa2fa8a4de6 (diff)
Moved "set_positions" for cloth out of core implicit solver.
API for the solver now has functions for setting of vertex motion state and the associated root transform data.
Diffstat (limited to 'source/blender/physics/BPH_mass_spring.h')
-rw-r--r--source/blender/physics/BPH_mass_spring.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/physics/BPH_mass_spring.h b/source/blender/physics/BPH_mass_spring.h
index 8382d0befe7..14c03d8e2b0 100644
--- a/source/blender/physics/BPH_mass_spring.h
+++ b/source/blender/physics/BPH_mass_spring.h
@@ -28,7 +28,12 @@
#ifndef __BPH_MASS_SPRING_H__
#define __BPH_MASS_SPRING_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct Implicit_Data;
+struct ClothModifierData;
struct Implicit_Data *BPH_mass_spring_solver_create(int numverts, int numsprings);
void BPH_mass_spring_solver_free(struct Implicit_Data *id);
@@ -36,8 +41,12 @@ 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 );
+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);
+#ifdef __cplusplus
+}
+#endif
+
#endif