Geant4 Cross Reference |
1 // Copyright (C) 2010, Guy Barrand. All rights 1 // Copyright (C) 2010, Guy Barrand. All rights reserved. 2 // See the file tools.license for terms. 2 // See the file tools.license for terms. 3 3 4 #ifndef toolx_OpenGL 4 #ifndef toolx_OpenGL 5 #define toolx_OpenGL 5 #define toolx_OpenGL 6 6 7 #if defined(__APPLE__) 7 #if defined(__APPLE__) 8 #include <TargetConditionals.h> 8 #include <TargetConditionals.h> 9 #endif 9 #endif 10 10 11 #if TARGET_OS_IPHONE 11 #if TARGET_OS_IPHONE 12 #include <OpenGLES/ES1/gl.h> 12 #include <OpenGLES/ES1/gl.h> 13 #elif defined(ANDROID) 13 #elif defined(ANDROID) 14 #include <GLES/gl.h> 14 #include <GLES/gl.h> 15 #elif _WIN32 15 #elif _WIN32 16 #include <windows.h> 16 #include <windows.h> 17 #include <GL/gl.h> 17 #include <GL/gl.h> 18 #elif __APPLE__ 18 #elif __APPLE__ 19 #if defined(TOOLX_USE_GL_GL_H) || defined(TOOL 19 #if defined(TOOLX_USE_GL_GL_H) || defined(TOOLS_USE_GL_GL_H) 20 #include <GL/gl.h> //Macports X11 GL. 20 #include <GL/gl.h> //Macports X11 GL. 21 #else 21 #else 22 #include <OpenGL/gl.h> //Apple/OpenGL. 22 #include <OpenGL/gl.h> //Apple/OpenGL. 23 #endif 23 #endif 24 #else 24 #else 25 #include <GL/gl.h> 25 #include <GL/gl.h> 26 #endif 26 #endif 27 27 28 #endif 28 #endif