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:
authorCampbell Barton <ideasman42@gmail.com>2012-04-09 11:06:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-09 11:06:06 +0400
commitd5953568c8b3ce1980c4cd872251042c72ac07e9 (patch)
treeeec6f202ec31fb274f918ca5e88006f5fa57e982 /source/blender/blenkernel/BKE_DerivedMesh.h
parentf5bb4635c6d023775689450c453cb76f917f2ee3 (diff)
use 'const float[3]' for derived mesh callback args.
Diffstat (limited to 'source/blender/blenkernel/BKE_DerivedMesh.h')
-rw-r--r--source/blender/blenkernel/BKE_DerivedMesh.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/source/blender/blenkernel/BKE_DerivedMesh.h b/source/blender/blenkernel/BKE_DerivedMesh.h
index abdb1d8cc8b..3a28af97166 100644
--- a/source/blender/blenkernel/BKE_DerivedMesh.h
+++ b/source/blender/blenkernel/BKE_DerivedMesh.h
@@ -262,29 +262,28 @@ struct DerivedMesh {
* coordinate and normal. For historical reasons the normal can be
* passed as a float or short array, only one should be non-NULL.
*/
- void (*foreachMappedVert)(
- DerivedMesh *dm,
- void (*func)(void *userData, int index, float *co,
- float *no_f, short *no_s),
- void *userData);
+ void (*foreachMappedVert)(DerivedMesh *dm,
+ void (*func)(void *userData, int index, const float co[3],
+ const float no_f[3], const short no_s[3]),
+ void *userData);
/* Iterate over each mapped edge in the derived mesh, calling the
* given function with the original edge and the mapped edge's new
* coordinates.
*/
void (*foreachMappedEdge)(DerivedMesh *dm,
- void (*func)(void *userData, int index,
- float *v0co, float *v1co),
- void *userData);
+ void (*func)(void *userData, int index,
+ const float v0co[3], const float v1co[3]),
+ void *userData);
/* Iterate over each mapped face in the derived mesh, calling the
* given function with the original face and the mapped face's (or
* faces') center and normal.
*/
void (*foreachMappedFaceCenter)(DerivedMesh *dm,
- void (*func)(void *userData, int index,
- float *cent, float *no),
- void *userData);
+ void (*func)(void *userData, int index,
+ const float cent[3], const float no[3]),
+ void *userData);
/* Iterate over all vertex points, calling DO_MINMAX with given args.
*