26 lines
394 B
C++
26 lines
394 B
C++
#ifndef MBGL_COMMON_HEADLESS_DISPLAY
|
|
#define MBGL_COMMON_HEADLESS_DISPLAY
|
|
|
|
#include <mbgl/platform/default/headless_view.hpp>
|
|
|
|
namespace mbgl {
|
|
|
|
class HeadlessDisplay {
|
|
public:
|
|
HeadlessDisplay();
|
|
~HeadlessDisplay();
|
|
|
|
#if MBGL_USE_CGL
|
|
CGLPixelFormatObj pixelFormat;
|
|
#endif
|
|
|
|
#if MBGL_USE_GLX
|
|
Display *xDisplay = nullptr;
|
|
GLXFBConfig *fbConfigs = nullptr;
|
|
#endif
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|