mightymandel v16

GPU-based Mandelbrot set explorer

poll.h
Go to the documentation of this file.
1 // mightymandel -- GPU-based Mandelbrot Set explorer
2 // Copyright (C) 2012,2013,2014,2015 Claude Heiland-Allen
3 // License GPL3+ http://www.gnu.org/licenses/gpl.html
4 
5 #ifndef POLL_H
6 #define POLL_H 1
7 
8 #include <GL/glew.h>
9 #include <GLFW/glfw3.h>
10 
11 // forward declarations
12 struct render_options;
13 struct filename;
14 struct record;
15 
19 struct poll;
20 
29 };
30 
34 typedef enum poll_result poll_t(struct poll *);
35 
41 struct poll *poll_new(GLFWwindow *window, bool interactive, struct render_options *render_options, double ui_poll_timeout, double display_timeout, struct filename *filename, struct record *record);
42 
48 void poll_delete(struct poll *poll);
49 
57 enum poll_result poll_ui(struct poll *poll, bool should_wait);
58 
64 void poll_swap_buffers(struct poll *poll);
65 
66 void poll_set_timeout(struct poll *poll, double timeout);
67 
68 #endif