diff options
Diffstat (limited to 'platform/macos/src/MGLMapView+OpenGL.h')
-rw-r--r-- | platform/macos/src/MGLMapView+OpenGL.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/platform/macos/src/MGLMapView+OpenGL.h b/platform/macos/src/MGLMapView+OpenGL.h deleted file mode 100644 index d4c6a448cd..0000000000 --- a/platform/macos/src/MGLMapView+OpenGL.h +++ /dev/null @@ -1,45 +0,0 @@ -#import "MGLMapView+Impl.h" -#import "MGLMapView_Private.h" - -#include <mbgl/gfx/renderable.hpp> -#include <mbgl/gl/renderer_backend.hpp> - -/// Adapter responsible for bridging calls from mbgl to MGLMapView and Cocoa. -class MGLMapViewOpenGLImpl final : public MGLMapViewImpl, - public mbgl::gl::RendererBackend, - public mbgl::gfx::Renderable { -public: - MGLMapViewOpenGLImpl(MGLMapView*); - ~MGLMapViewOpenGLImpl() override = default; - -public: - void restoreFramebufferBinding(); - - // Implementation of mbgl::gfx::RendererBackend -public: - mbgl::gfx::Renderable& getDefaultRenderable() override { - return *this; - } - -private: - void activate() override; - void deactivate() override; - // End implementation of mbgl::gfx::RendererBackend - - // Implementation of mbgl::gl::RendererBackend -public: - void updateAssumedState() override; - -private: - mbgl::gl::ProcAddress getExtensionFunctionPointer(const char* name) override; - // End implementation of mbgl::gl::Rendererbackend - - // Implementation of MGLMapViewImpl -public: - mbgl::gfx::RendererBackend& getRendererBackend() override { - return *this; - } - - mbgl::PremultipliedImage readStillImage() override; - CGLContextObj getCGLContextObj() override; -}; |