diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-03-31 09:57:57 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-03-31 09:57:57 +0200 |
commit | 08c6f6ea50aeadb3fae94d08b76556b5e2c88543 (patch) | |
tree | 1e57f1c3ed2350c22561bc7891479edd80b94b68 /mandel.h |
Initial
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); |