Fluent-Qt

API reference

SpatialRuntime

Shared opt-in runtime entry for native and application-owned 3D hosts.

fluent::spatial::SpatialRuntime

Methods

static void prepareApplication()

Install required native-style adapters before building application pages.

static bool prepareWindow(windowing::Window* window)

Prepare a hidden Fluent window for later GPU composition without a context. Returns false for visible/unsupported hosts; repeated preparation is a no-op.

static bool prepareWindow(windowing::Window* window, QSurface::SurfaceType surfaceType)

Prepare a hidden window for a caller-selected graphics API; no device is created. The caller must probe that API before installing a GPU canvas.

static bool supportsOpenGLDisplay()

Whether this display can attempt OpenGL; actual context validation is still required.

static bool isHardwareRenderer(const QString& renderer)

Reject empty and known software renderer names consistently across hosts.

static QString currentRendererName()

Current-context renderer name, or empty when no context is current.

static QString preflightFailure()

Platform preflight failure, or empty when real-surface validation may proceed.

static int maximumTextureDimension()

Minimum texture/renderbuffer/viewport dimension of the current context, or zero.

static bool needsNativeGlyphCoverage(qreal nativeDpr)

Whether native text coverage needs an adapter at the specified display density.