Revision: 17506
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17506
Author:   theeth
Date:     2008-11-19 21:01:13 +0100 (Wed, 19 Nov 2008)

Log Message:
-----------
draft for arc iterators to unify code.

Just moving code to work home, nothing to see here.

Modified Paths:
--------------
    branches/etch-a-ton/source/blender/blenlib/BLI_graph.h

Modified: branches/etch-a-ton/source/blender/blenlib/BLI_graph.h
===================================================================
--- branches/etch-a-ton/source/blender/blenlib/BLI_graph.h      2008-11-19 
19:28:12 UTC (rev 17505)
+++ branches/etch-a-ton/source/blender/blenlib/BLI_graph.h      2008-11-19 
20:01:13 UTC (rev 17506)
@@ -60,6 +60,24 @@
        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
 {


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to