Skip to main content

Module headless

Module headless 

Source
Expand description

Headless rendering helpers: RgbaBuffer, render_headless_once, and PNG save.

Structs§

RgbaBuffer
RGBA pixel buffer returned by headless rendering.

Enums§

PixelFormat
Output pixel format for crate::backend::SoftBackend::to_bytes.

Constants§

HEADLESS_BG_COLOR
Background fill colour used by render_headless_once.

Functions§

render_headless_once
Render a minimal UI scene headlessly and return an RGBA pixel buffer.
render_headless_scene
Render a custom scene headlessly and return an RGBA pixel buffer.