summaryrefslogtreecommitdiff
path: root/mandel.h
blob: e15432833effe3d18a9ad14390d35d716650c9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <cstddef>
#include <cstdint>



struct Params {
	double cx, cy, imgw;
	int16_t maxit;
	int par1, par2;
};

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, size_t subsample);