Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
27 lines
602 B
Plaintext
27 lines
602 B
Plaintext
#include "glfw_metal_backend.h"
|
|
|
|
#include "metal_backend.h"
|
|
|
|
#define GLFW_EXPOSE_NATIVE_COCOA
|
|
#include <GLFW/glfw3.h>
|
|
#include <GLFW/glfw3native.h>
|
|
|
|
GLFWMetalBackend::GLFWMetalBackend(GLFWwindow* window_, const bool capFrameRate)
|
|
:
|
|
window(glfwGetCocoaWindow(window_)),
|
|
rendererBackend(window)
|
|
{
|
|
}
|
|
|
|
mbgl::gfx::RendererBackend& GLFWMetalBackend::getRendererBackend() {
|
|
return rendererBackend;
|
|
}
|
|
|
|
void GLFWMetalBackend::setSize(mbgl::Size size) {
|
|
rendererBackend.setSize(size);
|
|
}
|
|
|
|
mbgl::Size GLFWMetalBackend::getSize() const {
|
|
return rendererBackend.getSize();
|
|
}
|