diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-10-06 15:45:14 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-10-06 15:45:14 -0400 |
commit | 170ce422ceb20126cd7dc7b184b5edbc0685c7e7 (patch) | |
tree | bc4e7f37775a0257f18e31628404fa476e48aba0 /common/headless_view.hpp | |
parent | 0f1d33f5ee29adf9b62c912339935fdde44b0b98 (diff) | |
download | qtlocation-mapboxgl-170ce422ceb20126cd7dc7b184b5edbc0685c7e7.tar.gz |
forward declare HeadlessDisplay in headless_view.hpp
Diffstat (limited to 'common/headless_view.hpp')
-rw-r--r-- | common/headless_view.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/headless_view.hpp b/common/headless_view.hpp index d1b09ce700..381988ae94 100644 --- a/common/headless_view.hpp +++ b/common/headless_view.hpp @@ -1,12 +1,20 @@ #ifndef MBGL_COMMON_HEADLESS_VIEW #define MBGL_COMMON_HEADLESS_VIEW -#include "headless_display.hpp" +#ifdef __APPLE__ +#define MBGL_USE_CGL 1 +#else +#include <GL/glx.h> +#define MBGL_USE_GLX 1 +#endif #include <mbgl/map/view.hpp> +#include <mbgl/platform/gl.hpp> namespace mbgl { +class HeadlessDisplay; + class HeadlessView : public View { public: HeadlessView(); |