Skip to main content

telar_platform_headless/
lib.rs

1//! A first-class headless [`platform_core::Platform`] backend and the one canonical offscreen window marker.
2//!
3//! [`HeadlessWindow`] replaces the ad-hoc markers that used to be duplicated across the renderer crates (the
4//! `HeadlessWindow` in `renderer-hardware` and a per-test `struct Fake;` in each renderer-software test). One
5//! type now satisfies both the renderer bound (raw-window-handle) and the platform bound
6//! ([`platform_core::Window`]).
7//!
8//! [`HeadlessPlatform`] drives a real app through the same [`platform_core::EventHandler`] seam as the winit
9//! backend, without a window system — a deterministic proving ground for the bring-your-own-`Platform` seam
10//! and an integration-test harness that can assert on read-back pixels.
11
12mod platform;
13mod window;
14
15pub use platform::{FrameSink, HeadlessPlatform, SurfaceFrameSink};
16pub use window::HeadlessWindow;