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:
authorMartin Poirier <theeth@yahoo.com>2008-11-24 22:24:49 +0300
committerMartin Poirier <theeth@yahoo.com>2008-11-24 22:24:49 +0300
commitd467158158b92ac9e92482db00ee51b2c16597f3 (patch)
tree8c9990dae80744788a9c0e3e9fcbb5deceb33274 /source/blender/blenlib/BLI_graph.h
parent933ac8db12729327ccd313dea0575ad2eb631fa0 (diff)
Second step out of three for merging sketching subdivision methods with graph subdivision methods.
Graph subdivision uses graph arc iterators.
Diffstat (limited to 'source/blender/blenlib/BLI_graph.h')
-rw-r--r--source/blender/blenlib/BLI_graph.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h
index 12ca87577d5..7629dbf6ba8 100644
--- a/source/blender/blenlib/BLI_graph.h
+++ b/source/blender/blenlib/BLI_graph.h
@@ -62,20 +62,23 @@ typedef struct 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 void* (*PeekFct)(void* iter, int n);
+typedef void* (*NextFct)(void* iter);
+typedef void* (*NextNFct)(void* iter, int n);
+typedef void* (*PreviousFct)(void* iter);
+typedef int (*StoppedFct)(void* iter);
typedef struct BArcIterator {
- PeekPointFct peek;
- NextPointFct next;
- CurrentPointFct current;
- PreviousPointFct previous;
- StoppedFct stopped;
+ PeekFct peek;
+ NextFct next;
+ NextNFct nextN;
+ PreviousFct previous;
+ StoppedFct stopped;
+
+ float *p, *no;
int length;
+ int index;
} BArcIterator;
/* Helper structure for radial symmetry */