mightymandel v16

GPU-based Mandelbrot set explorer

mightymandel.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 MIGHTYMANDEL_H
6 #define MIGHTYMANDEL_H 1
7 
13 #include <stdbool.h>
14 #include <GL/glew.h>
15 
16 #include "config.glsl"
17 
25 
36 #ifdef MIGHTYMANDEL_DEBUG
37 
38 #define D do{ int e = glGetError(); if (e != 0) { opengl_error_printout_count++; if (opengl_error_printout_count == 50) { \
39  log_message(LOG_WARN, "too many OpenGL errors, not printing any more\n"); \
40  } else if (opengl_error_printout_count < 50) { \
41  log_message(LOG_WARN, "OpenGL error %d in %s() (%s:%d)\n", e, __FUNCTION__, __FILE__, __LINE__); \
42  } \
43 } }while(0)
44 
45 #else
46 
47 #define D do{ }while(0)
48 
49 #endif
50 
58 extern bool FP64;
59 
67 extern bool DE;
68 
102 };
103 
104 #endif