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:
authorJacques Lucke <jacques@blender.org>2020-07-17 13:28:09 +0300
committerJacques Lucke <jacques@blender.org>2020-07-17 13:36:23 +0300
commit0fcd23a3880f0caf4a683203b486d451991edb2d (patch)
treeaf8305c333d61f0a4d8b82723a375d68efa3bd30 /source/blender/blenkernel/BKE_simulation.h
parentc5f61fbf48c691185a6ff50af935aba5096019c4 (diff)
Simulation: use better api for adding and removing simulation states
Diffstat (limited to 'source/blender/blenkernel/BKE_simulation.h')
-rw-r--r--source/blender/blenkernel/BKE_simulation.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_simulation.h b/source/blender/blenkernel/BKE_simulation.h
index ff6aaa5e30e..36f4122f4dc 100644
--- a/source/blender/blenkernel/BKE_simulation.h
+++ b/source/blender/blenkernel/BKE_simulation.h
@@ -17,13 +17,15 @@
#ifndef __BKE_SIMULATION_H__
#define __BKE_SIMULATION_H__
+#include "DNA_simulation_types.h"
+
#ifdef __cplusplus
extern "C" {
#endif
struct Depsgraph;
struct Main;
-struct Simulation;
+struct Scene;
void *BKE_simulation_add(struct Main *bmain, const char *name);
@@ -31,6 +33,12 @@ void BKE_simulation_data_update(struct Depsgraph *depsgraph,
struct Scene *scene,
struct Simulation *simulation);
+SimulationState *BKE_simulation_state_add(Simulation *simulation,
+ eSimulationStateType type,
+ const char *name);
+void BKE_simulation_state_remove(Simulation *simulation, SimulationState *state);
+void BKE_simulation_state_remove_all(Simulation *simulation);
+
#ifdef __cplusplus
}
#endif