aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
blob: a50027ab9f51a67908c93ee1d4c36504f058c5f7 (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
36
37
38
39
/*
 * render.h
 *
 *  Created on: 15.01.2018
 *      Author: Superleo1810
 */

#ifndef RENDER_H_
#define RENDER_H_

#include "defs.h"
#include "render_opencl.h"
#include "render_cpu.h"
#include <math.h>

typedef struct config {
	CpuConfig config_cpu;
	OpenCLConfig config_opencl;
	u8 mode;
	u8 video;
	u8 filetype;
	u16 width;
	u16 height;
	u8 videoFPS;
	u32 bitrate;
	const char *path;
	// TODO: key mapping als option in die struct
} Config;

Config *_config;
u32 *s_arr;
GLuint tex;

d64 zoom_func(d64 ft, d64 s);

void init_render(Config *config);
void show_render();

#endif /* RENDER_H_ */