gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
gVirtualXRayConfig.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (c) 2014, Dr Franck P. Vidal (franck.p.vidal@fpvidal.net),
4 http://www.fpvidal.net/
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without modification,
8 are permitted provided that the following conditions are met:
9 
10 1. Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer.
12 
13 2. Redistributions in binary form must reproduce the above copyright notice,
14 this list of conditions and the following disclaimer in the documentation and/or
15 other materials provided with the distribution.
16 
17 3. Neither the name of the Bangor University nor the names of its contributors
18 may be used to endorse or promote products derived from this software without
19 specific prior written permission.
20 
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 
32 */
33 
34 
35 #ifndef __gVirtualXRayConfig_h
36 #define __gVirtualXRayConfig_h
37 
38 #ifdef WIN32
39 #ifdef HAS_GLEW
40 #include "GL/glew.h"
41 #endif
42 #endif
43 
44 // the configured options and settings for gVirtualXRay
45 #define gVirtualXRay_VERSION_MAJOR "2"
46 #define gVirtualXRay_VERSION_MINOR "0"
47 #define gVirtualXRay_VERSION_PATCH "10"
48 
49 #if defined(_WIN32) || defined(_WIN64)
50 #define _USE_MATH_DEFINES
51 #endif
52 
53 
54 #if defined(_WIN32) || defined(_WIN64)
55 #ifndef NOMINMAX
56 #define NOMINMAX
57 #endif
58 #include <windows.h>
59 #endif
60 
61 //#include <glad/glad.h>
62 //#include <GLFW/glfw3.h>
63 
64 /*#ifdef HAS_GLEW
65  #define GLEW_EGL
66  #include <GL/glew.h>
67 
68 #else // HAS_GLEW
69 
70  #ifdef __APPLE__
71  #ifndef GL3_PROTOTYPES
72  #define GL3_PROTOTYPES 1
73  #endif // GL3_PROTOTYPES
74  #include <OpenGL/gl3.h>
75  #else // __APPLE__
76  #ifndef GL_GLEXT_PROTOTYPES
77  #define GL_GLEXT_PROTOTYPES 1
78  #endif // GL_GLEXT_PROTOTYPES
79 
80  #include <GL/glcorearb.h>
81  #endif // __APPLE__
82 #endif // HAS_GLEW
83 */
84 
85 #ifndef _WIN32
86 #define GL_GLEXT_PROTOTYPES 1
87 #endif
88 
89 #include <GL/glcorearb.h>
90 /*
91 #ifdef __APPLE__
92 #ifndef GL3_PROTOTYPES
93 #define GL3_PROTOTYPES 1
94 #endif // GL3_PROTOTYPES
95 #include <OpenGL/gl3.h>
96 #else // __APPLE__
97 #ifndef GL_GLEXT_PROTOTYPES
98 #define GL_GLEXT_PROTOTYPES 1
99 #endif // GL_GLEXT_PROTOTYPES
100 
101 #include <GL/glcorearb.h>
102 #endif // __APPLE__
103 
104 
105 #ifdef __APPLE__
106 #include <OpenGL/glu.h>
107 #else
108 #include <GL/glu.h>
109 #endif
110 */
111 
112 #if (defined(_MSC_VER) && (_MSC_VER <= 1600))
113 #define isnan(x) _isnan(x)
114 #define isinf(x) (!_finite(x))
115 #endif
116 
117 #ifndef M_PI
118 #define M_PI 3.14159265358979323846
119 #endif
120 
121 #define gvxr_VERSION "gVirtualXRay core library (gvxr) 2.0.10 (2025-07-17T11:16:47) [Compiler: GNU g++] on Linux"
122 
123 
124 
125 #endif //__gVirtualXRayConfig_h