Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
EditorMetalLayer.h File Reference

Core Animation layer attachment for a native Metal editor window. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

void * donner::editor::gui::AttachMetalLayerToGlfwWindow (GLFWwindow *window)
 Attach a Metal layer to the content view of a live GLFW window. The view retains the layer for the window's lifetime.
void donner::editor::gui::UpdateMetalLayerBackingScale (GLFWwindow *window)
 Keep the layer's point-to-pixel scale aligned with the Cocoa window after a backing-scale change, such as moving between Retina and standard-density displays.

Detailed Description

Core Animation layer attachment for a native Metal editor window.