diff options
Diffstat (limited to 'mandel.h')
-rw-r--r-- | mandel.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mandel.h b/mandel.h new file mode 100644 index 0000000..aed1738 --- /dev/null +++ b/mandel.h @@ -0,0 +1,18 @@ +#pragma once + + +struct Params { + double cx, cy, imgw; + int16_t maxit; +}; + +struct Mandel; + +Params mandel_default_params(); +Mandel* mandel_init(int w, int h); +void mandel_free(Mandel *ctx); + +double mandel_imgh(const Mandel *ctx, const Params *par); + +// dst[3*w*h] +void mandel_render(uint8_t *dst, Mandel *ctx, const Params *par); |