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:
-rw-r--r--source/blender/blenlib/BLI_graph.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h
index 160c2e04cf5..12ca87577d5 100644
--- a/source/blender/blenlib/BLI_graph.h
+++ b/source/blender/blenlib/BLI_graph.h
@@ -60,6 +60,24 @@ typedef struct BArc {
int symmetry_flag;
} BArc;
+struct BArcIterator;
+
+typedef float* (*PeekPointFct)(struct BArcIterator* iter, int n);
+typedef float* (*NextPointFct)(struct BArcIterator* iter);
+typedef float* (*CurrentPointFct)(struct BArcIterator* iter);
+typedef float* (*PreviousPointFct)(struct BArcIterator* iter);
+typedef int (*StoppedFct)(struct BArcIterator* iter);
+
+typedef struct BArcIterator {
+ PeekPointFct peek;
+ NextPointFct next;
+ CurrentPointFct current;
+ PreviousPointFct previous;
+ StoppedFct stopped;
+
+ int length;
+} BArcIterator;
+
/* Helper structure for radial symmetry */
typedef struct RadialArc
{