Overte C++ Documentation
gl/src/gl/Config.h
1 //
2 // GPUConfig.h
3 // libraries/gpu/src/gpu
4 //
5 // Created by Sam Gateau on 12/4/14.
6 // Copyright 2013 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_gpu_GPUConfig_h
13 #define hifi_gpu_GPUConfig_h
14 
15 #include <QtCore/QtGlobal>
16 
17 #include <glad/glad.h>
18 
19 #if defined(Q_OS_ANDROID)
20 #include <EGL/egl.h>
21 #else
22 
23 #ifndef GL_SLUMINANCE8_EXT
24 #define GL_SLUMINANCE8_EXT 0x8C47
25 #endif
26 
27 // Prevent inclusion of System GL headers
28 #define __glext_h_
29 #define __gl_h_
30 #define __gl3_h_
31 
32 #endif
33 
34 // Platform specific code to load the GL functions
35 namespace gl {
36  void initModuleGl();
37  int getSwapInterval();
38  void setSwapInterval(int swapInterval);
39  bool queryCurrentRendererIntegerMESA(int attr, unsigned int *value);
40 }
41 
42 #endif // hifi_gpu_GPUConfig_h