Cranpose Pixels Renderer
cranpose-render-pixels draws Cranpose scenes into a caller-owned RGBA byte
buffer. Renderer and host authors use PixelsRenderer when a software frame
fits the target surface. App authors can select the renderer-pixels feature
on cranpose.
PixelsRenderer::draw_scaled writes the current scene into a host-owned RGBA
buffer at the requested device scale:
use PixelsRenderer;
let renderer = new;
let mut rgba = vec!;
renderer.draw_scaled;
AppShell supplies the scene before each frame. The host presents the image.
The watchOS host
shows the complete integration.
Default features are empty. The optional
embedded-default-font feature supplies a fallback font. The
renderer-pixels feature
selects this backend through cranpose; the watchos feature selects the same
backend.
See the PixelsRenderer API,
the renderer architecture guide
and the crate source.