mightymandel v16

GPU-based Mandelbrot set explorer

completion.h
Go to the documentation of this file.
1 // mightymandel -- GPU-based Mandelbrot Set explorer
2 // Copyright (C) 2012,2013,2014,2015 Claude Heiland-Allen
3 // License GPL3+ http://www.gnu.org/licenses/gpl.html
4 
5 #ifndef COMPLETION_H
6 #define COMPLETION_H 1
7 
13 #include <stdbool.h>
14 
15 struct completion {
16  bool almost;
17  bool done;
20  int unescaped;
21  int escaped;
23 };
24 
25 void completion_start(struct completion *completion, int unescaped);
26 void completion_reset(struct completion *completion, int unescaped);
27 bool completion_update(struct completion *completion, int unescaped, int escaped, int iterations, double sharpness);
29 
30 #endif