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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-05 16:54:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-05 16:55:16 +0300
commitd94df18550702a9df7b56feb5d58fb20effb7536 (patch)
tree8157bf29a3800a2b4a94d58fd8fb0334b73eb603 /source
parent7a612c37996fb513ccbf3a36172790e7798a0ba6 (diff)
Cleanup: doxy grouping for mesh runtime API
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/mesh_runtime.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_runtime.c b/source/blender/blenkernel/intern/mesh_runtime.c
index c8416811694..42b8824a204 100644
--- a/source/blender/blenkernel/intern/mesh_runtime.c
+++ b/source/blender/blenkernel/intern/mesh_runtime.c
@@ -42,6 +42,9 @@
#include "BKE_bvhutils.h"
#include "BKE_mesh.h"
+/* -------------------------------------------------------------------- */
+/** \name Mesh Runtime Struct Utils
+ * \{ */
static ThreadRWMutex loops_cache_lock = PTHREAD_RWLOCK_INITIALIZER;
@@ -145,8 +148,9 @@ const MLoopTri *BKE_mesh_runtime_looptri_ensure(Mesh *mesh)
}
/* This is a copy of DM_verttri_from_looptri(). */
-void BKE_mesh_runtime_verttri_from_looptri(MVertTri *r_verttri, const MLoop *mloop,
- const MLoopTri *looptri, int looptri_num)
+void BKE_mesh_runtime_verttri_from_looptri(
+ MVertTri *r_verttri, const MLoop *mloop,
+ const MLoopTri *looptri, int looptri_num)
{
int i;
for (i = 0; i < looptri_num; i++) {
@@ -192,6 +196,12 @@ void BKE_mesh_runtime_clear_geometry(Mesh *mesh)
MEM_SAFE_FREE(mesh->runtime.looptris.array);
}
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Mesh Batch Cache Callbacks
+ * \{ */
+
/* Draw Engine */
void (*BKE_mesh_batch_cache_dirty_cb)(Mesh *me, int mode) = NULL;
void (*BKE_mesh_batch_cache_free_cb)(Mesh *me) = NULL;
@@ -208,3 +218,5 @@ void BKE_mesh_batch_cache_free(Mesh *me)
BKE_mesh_batch_cache_free_cb(me);
}
}
+
+/** \} */