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
24
extern
int
opengl_error_printout_count
;
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
98
enum
render_method_t
{
99
render_method_fp32
= 0,
100
render_method_fp64
= 1,
101
render_method_fpxx
= 2
102
};
103
104
#endif
src
mightymandel.h
Generated on Mon Jan 19 2015 16:18:12 for mightymandel by
1.8.1.2