diff src/dmcurves.h @ 1081:7df95aefb9c6

Make bspline functions more flexible.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Mar 2015 05:30:30 +0200
parents 43594ac98f91
children 67f5c9d60c72
line wrap: on
line diff
--- a/src/dmcurves.h	Mon Mar 02 05:00:50 2015 +0200
+++ b/src/dmcurves.h	Mon Mar 02 05:30:30 2015 +0200
@@ -71,7 +71,11 @@
 }
 
 int dmBSplineGenerateAlloc(DMVector **dst, int *ndst, const DMVector *points, const int npoints, const int slod);
-int dmBSplineGenerate(DMVector *dst, const int ndst, const DMVector *points, const int npoints, const int slod);
+int dmBSplineGenerateArray(DMVector *dst, const int ndst, const DMVector *points, const int npoints, const int slod);
+
+int dmBSplineGenerate(const DMVector *points, const int npoints, const int slod,
+    int (*callback)(void *data, const int ndst, const int nc, float x, float y, float z),
+    void *data, const int ndst);
 
 
 #ifdef __cplusplus