Geant4
11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpenGL.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
//
27
// G.Barrand.
28
29
30
#ifndef G4OpenGL_h
31
#define G4OpenGL_h
32
33
#ifdef WIN32
34
#include <windows.h>
35
#undef min
36
#undef max
37
#endif
38
39
40
#if defined (G4VIS_BUILD_OPENGLX_DRIVER) || defined (G4VIS_USE_OPENGLX)
41
#if defined (G4VIS_BUILD_OPENGLQT_DRIVER) || defined (G4VIS_USE_OPENGLQT)
42
#ifdef __MACH__
43
#include <OpenGL/gl.h>
44
#else
45
#include <GL/gl.h>
46
#endif
47
#else
48
#include <GL/gl.h>
49
#endif
50
#endif
51
52
#if defined (G4VIS_BUILD_OPENGLXM_DRIVER) || defined (G4VIS_USE_OPENGLXM)
53
#if defined (G4VIS_BUILD_OPENGLQT_DRIVER) || defined (G4VIS_USE_OPENGLQT)
54
#ifdef __MACH__
55
#include <OpenGL/gl.h>
56
#else
57
#include <GL/gl.h>
58
#endif
59
#else
60
#include <GL/gl.h>
61
#endif
62
#endif
63
64
#if defined (G4VIS_BUILD_OPENGLWIN32_DRIVER) || defined (G4VIS_USE_OPENGLWIN32)
65
# include <GL/gl.h>
66
#endif
67
//# Do NOT include glx Here ! It has to be done, after all <Qxx...> includes
68
//# include <GL/glx.h>
69
70
#if defined (G4VIS_BUILD_OPENGLQT_DRIVER) || defined (G4VIS_USE_OPENGLQT)
71
#if defined (G4VIS_BUILD_OPENGLX_DRIVER) || defined (G4VIS_USE_OPENGLX)
72
#else
73
#ifdef __MACH__
74
//# define G4OPENGL_VERSION_2 1
75
#include <OpenGL/gl.h>
76
#else
77
#include <GL/gl.h>
78
#endif
79
#include <qgl.h>
80
#endif
81
#endif
82
83
#ifdef G4OPENGL_VERSION_2
84
# undef G4VIS_BUILD_OPENGL_GL2PS
85
// include all redefinitions of openGl functions for Vertex Buffer Objects
86
# include "
G4OpenGLVboDrawer.hh
"
87
#endif
88
89
#define G4OPENGL_FLT_BIG 1.e20
90
91
#endif
G4OpenGLVboDrawer.hh
geant4-v11.1.1
source
visualization
OpenGL
include
G4OpenGL.hh
Generated by
1.9.6