summaryrefslogtreecommitdiff
path: root/rect.h
blob: 39c76cb6bbfed160911666ccc2449becb70bd3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <stdbool.h>

#include "vector.h"

typedef struct {
	/* bucket width/height */
	uint2 dim;
	double4 *data;
	unsigned long int badvals, samples;
} bucket;

void bucket_init (bucket * const b, const uint2 dim);
bool render_bucket (flam3_genome * const genome, bucket * const bucket,
		const double timelimit);
void render_image (const flam3_genome * const genome, const bucket * const b,
		void * const out, const unsigned int bytes_per_channel);