mightymandel v16

GPU-based Mandelbrot set explorer

fpxx_escaped.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 FPXX_ESCAPED_H
6 #define FPXX_ESCAPED_H 1
7 
8 #include <stdbool.h>
9 #include <GL/glew.h>
10 #include <mpfr.h>
11 
12 struct fpxx_escaped {
13  GLuint program;
14  GLint center;
15  GLint radius;
16  GLint aspect;
17  GLint loger2;
18  GLint pxs;
19  GLint cne0;
20  GLint zdz0;
21  GLint err0;
22  GLuint vao;
23 };
24 
25 void fpxx_escaped_begin(struct fpxx_escaped *s);
26 void fpxx_escaped_end(struct fpxx_escaped *s);
27 void fpxx_escaped_start(struct fpxx_escaped *s, GLuint tex, GLuint fbo, GLuint vbo, double escaperadius2, int width, int height, const mpfr_t centerx0, const mpfr_t centery0, const mpfr_t radius0, const mpfr_t refx, const mpfr_t refy);
28 void fpxx_escaped_do(struct fpxx_escaped *s, GLuint active_count);
29 
30 #endif