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:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-06-05 17:58:08 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-06-05 17:59:25 +0300
commitce6db959c7d96792edad3a6d606e3662a4ef0798 (patch)
tree47eb47687a5cd3cc0c149c588dd3f9851ccb085d /source/blender/blenkernel/BKE_mesh_runtime.h
parenta9ed50514cb636d3fa99ab7b309d0c75da437943 (diff)
Moved function declarations from BKE_DerivedMesh.h to BKE_mesh_runtime.h
The function definitions still reside in DerivedMesh.c. Once we're done porting all the DerivedMesh use to Mesh, we'll move the still-relevant functions to mesh_runtime.c. This move is now cumbersome due to shared statically-declared utility functions in DerivedMesh.c
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_runtime.h')
-rw-r--r--source/blender/blenkernel/BKE_mesh_runtime.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_runtime.h b/source/blender/blenkernel/BKE_mesh_runtime.h
index beca4f9db5a..da11eb81267 100644
--- a/source/blender/blenkernel/BKE_mesh_runtime.h
+++ b/source/blender/blenkernel/BKE_mesh_runtime.h
@@ -33,10 +33,22 @@
* This file contains access functions for the Mesh.runtime struct.
*/
+#include "BKE_customdata.h" /* for CustomDataMask */
+
+struct Depsgraph;
struct Mesh;
struct MLoop;
struct MLoopTri;
struct MVertTri;
+struct Object;
+struct Scene;
+
+/* Undefine to hide DerivedMesh-based function declarations */
+#define WITH_DERIVEDMESH
+
+#ifdef WITH_DERIVEDMESH
+struct DerivedMesh;
+#endif
void BKE_mesh_runtime_reset(struct Mesh *mesh);
int BKE_mesh_runtime_looptri_len(const struct Mesh *mesh);
@@ -51,5 +63,23 @@ void BKE_mesh_runtime_verttri_from_looptri(
struct MVertTri *r_verttri,
const struct MLoop *mloop, const struct MLoopTri *looptri, int looptri_num);
+/* NOTE: the functions below are defined in DerivedMesh.c, and are intended to be moved
+ * to a more suitable location when that file is removed. */
+#ifdef WITH_DERIVEDMESH
+struct DerivedMesh *mesh_get_derived_final(
+ struct Depsgraph *depsgraph, struct Scene *scene,
+ struct Object *ob, CustomDataMask dataMask);
+#endif
+struct Mesh *mesh_get_eval_final(
+ struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, CustomDataMask dataMask);
+
+#ifdef WITH_DERIVEDMESH
+struct DerivedMesh *mesh_get_derived_deform(
+ struct Depsgraph *depsgraph, struct Scene *scene,
+ struct Object *ob, CustomDataMask dataMask);
+#endif
+struct Mesh *mesh_get_eval_deform(
+ struct Depsgraph *depsgraph, struct Scene *scene,
+ struct Object *ob, CustomDataMask dataMask);
#endif /* __BKE_MESH_RUNTIME_H__ */