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

Native window surface prepared before Geode's device and pipelines are created. More...

#include <cstdint>
#include <memory>
#include "donner/gpu/Descriptors.h"
#include "donner/svg/renderer/geode/GeodeNativeRoot.h"
Include dependency graph for geode_embed_surface.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::example::NativeEmbedSurface
 Platform object and selected root for the example's runtime surface. The GLFW window must outlive this object and its runtime surface. More...

Namespaces

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

Functions

NativeEmbedSurface donner::example::PrepareNativeEmbedSurface (GLFWwindow *window)
 Prepare a native window surface and select a root that can present to it. A null root means preparation failed; call RetireNativeEmbedSurface even then.
bool donner::example::RetireNativeEmbedSurface (NativeEmbedSurface &surface, GLFWwindow *window)
 Release the embedder surface after the runtime surface and Geode context are destroyed. False means the driver could not prove retirement; the helper retains the GLFW window and native root until process exit, so the caller must not destroy the window or terminate GLFW.

Detailed Description

Native window surface prepared before Geode's device and pipelines are created.