summaryrefslogtreecommitdiff
path: root/mandel.h
blob: aed1738199b922ef7262c5971cf97460ad32656c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);