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
40
41
|
/*
* 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>
#include "config.h"
#include "creator.h"
config_t *_config;
u32 *s_arr;
GLuint tex;
d64 x_min, x_max, y_min, y_max;
d64 x_min_s, x_max_s, y_min_s, y_max_s;
float ft;
int t_old;
d64 zoom_func(d64 ft, d64 s);
void (*_render)(d64 x_min, d64 y_min, d64 x_max, d64 y_max);
void (*_idle)(void);
void keyboard(unsigned char key, int mouseX, int mouseY);
void mouse(int button, int state, int x, int y);
void idle_dummy(void);
void idle(void);
void render(void);
void init_render(config_t *config);
void show_render();
#endif /* RENDER_H_ */
|