Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
21 lines
553 B
Objective-C
21 lines
553 B
Objective-C
#pragma once
|
|
|
|
#include <mbgl/mtl/renderer_backend.hpp>
|
|
#include <mbgl/gfx/renderable.hpp>
|
|
#include <mbgl/mtl/texture2d.hpp>
|
|
#include <mbgl/gfx/context.hpp>
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
class MetalBackend final : public mbgl::mtl::RendererBackend, public mbgl::gfx::Renderable {
|
|
public:
|
|
MetalBackend(NSWindow *window);
|
|
|
|
mbgl::gfx::Renderable &getDefaultRenderable() override;
|
|
void activate() override;
|
|
void deactivate() override;
|
|
void updateAssumedState() override;
|
|
void setSize(mbgl::Size size_);
|
|
mbgl::Size getSize() const;
|
|
};
|