Files
MapLibreParticleLab/platform/glfw/metal_backend.h
Bart Louwers e4a4b9ec67 macOS Metal + AppKit app (#2205)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-02 01:52:19 +02:00

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;
};