blob: 45646d754a1260c8786b518bf5a1ee24d1634bd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include <mbgl/gl/implementation.hpp>
#if MBGL_USE_CGL
#include <OpenGL/OpenGL.h>
#elif MBGL_USE_GLX
typedef struct _XDisplay Display;
typedef struct __GLXFBConfigRec* GLXFBConfig;
#endif
namespace mbgl {
class HeadlessDisplay {
public:
HeadlessDisplay();
~HeadlessDisplay();
#if MBGL_USE_CGL
CGLPixelFormatObj pixelFormat = nullptr;
#endif
#if MBGL_USE_EGL
int fd;
struct gbm_device *gbm = nullptr;
EGLDisplay dpy = 0;
EGLConfig config = 0;
#endif
};
} // namespace mbgl
|