From 697f57743e560fad2264b7a2039795432ca5b3a8 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 8 Apr 2015 20:56:23 +0200 Subject: Refactor flam3_iterate --- flam3.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'flam3.h') diff --git a/flam3.h b/flam3.h index e816ba1..9008f4e 100644 --- a/flam3.h +++ b/flam3.h @@ -507,3 +507,13 @@ typedef struct { #define CROSS_INTERPOLATE 1 #define CROSS_ALTERNATE 2 +typedef struct { + unsigned int consec, lastxf; + double4 p; + const unsigned short *xform_distrib; + const flam3_genome *genome; +} iterator; + +void iterator_init (iterator * const iter, const flam3_genome * const genome, + const unsigned short * const xform_distrib, randctx * const rc); +bool iterator_step (iterator * const iter, double4 * const ret, randctx * const rc); -- cgit v1.2.3