Expand description
Headless rendering helpers: RgbaBuffer, render_headless_once, and PNG save.
Structs§
- Rgba
Buffer - RGBA pixel buffer returned by headless rendering.
Enums§
- Pixel
Format - 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.