diff options
Diffstat (limited to 'include/mbgl/platform/default')
-rw-r--r-- | include/mbgl/platform/default/glx.h | 2 | ||||
-rw-r--r-- | include/mbgl/platform/default/headless_display.hpp | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/glx.h b/include/mbgl/platform/default/glx.h new file mode 100644 index 0000000000..6b7d9a3df9 --- /dev/null +++ b/include/mbgl/platform/default/glx.h @@ -0,0 +1,2 @@ +#include <GL/glx.h> +#undef None diff --git a/include/mbgl/platform/default/headless_display.hpp b/include/mbgl/platform/default/headless_display.hpp new file mode 100644 index 0000000000..5b33fd6990 --- /dev/null +++ b/include/mbgl/platform/default/headless_display.hpp @@ -0,0 +1,25 @@ +#ifndef MBGL_COMMON_HEADLESS_DISPLAY +#define MBGL_COMMON_HEADLESS_DISPLAY + +#include "headless_view.hpp" + +namespace mbgl { + +class HeadlessDisplay { +public: + HeadlessDisplay(); + ~HeadlessDisplay(); + +#if MBGL_USE_CGL + CGLPixelFormatObj pixelFormat; +#endif + +#if MBGL_USE_GLX + Display *x_display = nullptr; + GLXFBConfig *fb_configs = nullptr; +#endif +}; + +} + +#endif |