aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-02-01 00:26:36 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-02-01 00:26:36 +0100
commitbe4f2582062196dd6ecf393f55566367bc1dfa9f (patch)
tree9c80c556327097f6ab7e4b97b5b195d45167565f /src/render.h
parent28006d5fa6af63a9bc2f274e7daf7a741eaacde5 (diff)
reorganized configs
Diffstat (limited to 'src/render.h')
-rw-r--r--src/render.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/render.h b/src/render.h
index 52be446..5972200 100644
--- a/src/render.h
+++ b/src/render.h
@@ -12,29 +12,15 @@
#include "render_opencl.h"
#include "render_cpu.h"
#include <math.h>
+#include "config.h"
-typedef struct config {
- CpuConfig config_cpu;
- OpenCLConfig config_opencl;
- u8 mode;
- u8 zoomSpecific;
- 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;
+config_t *_config;
u32 *s_arr;
GLuint tex;
d64 zoom_func(d64 ft, d64 s);
-void init_render(Config *config);
+void init_render(config_t *config);
void show_render();
#endif /* RENDER_H_ */