/* * render.h * * Created on: 15.01.2018 * Author: Superleo1810 */ #ifndef RENDER_H_ #define RENDER_H_ #include #include "defs.h" typedef struct config { u32 iterations; u32 colorFrom; u32 colorTo; bool video; u8 filetype; u16 width; u16 height; u8 renderFPS; u8 videoFPS; u32 bitrate; const char *path; // TODO: key mapping als option in die struct } Config; typedef struct Ui_render { GtkWindow *window; GtkFrame *frame; GtkDrawingArea *drawing_area; } Ui_render; Config *_config; Ui_render ui_render; u32 (*_sfunc) (double, double, u32); void render_init(Config *config, u32 (*sfunc) (double, double, u32)); void render_show(); cairo_surface_t *render_surface(); void on_draw(GtkWidget *widget, cairo_t *cr, gpointer data); #endif /* RENDER_H_ */