aboutsummaryrefslogtreecommitdiff
path: root/src/render_opencl.h
blob: aaa9df681ceed2335cab1bdcaa59bbb0f8cb6550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * render_opencl.h
 *
 *  Created on: 25.01.2018
 *      Author: Superleo1810
 */

#ifndef RENDER_OPENCL_H_
#define RENDER_OPENCL_H_

#include "defs.h"
#include <stdlib.h>
#include <GL/glut.h>

typedef struct config_opencl {
	u32 *arr;
	u32 (*set_func)(d64, d64, u32);
	u32 iterations;
	u32 colorFrom;
	u32 colorTo;
	d64 to_x;
	d64 to_y;
	d64 speed;
	u16 width;
	u16 height;
	u8 renderFPS;
} OpenCLConfig;

OpenCLConfig *config_opencl;

void init_opencl(OpenCLConfig *config);
void render_opencl(void);
void idle_opencl(void);

#endif /* RENDER_OPENCL_H_ */