Skip to main content

Crate oxframe_render

Crate oxframe_render 

Source
Expand description

Renderers turn a SceneGraph into an RGBA image.

Status: oxframe is under very active development. The API is not stable yet and may change from version to version. Pin the exact version in your Cargo.toml and check the changelog before upgrading.

CpuRenderer (tiny-skia) is the reference backend and the --cpu mode for machines without a GPU; GpuRenderer (vello, feature gpu) is the fast path. Both consume the same oxframe_2d::DrawItem list and pass the same golden tests within a ΔE tolerance.

Structs§

CpuRenderer
tiny-skia backend. Deterministic: same scene, same bytes.
Image
8-bit sRGB RGBA, straight alpha, row-major, no padding.
RenderOptions
Size and background of one render call.

Traits§

Renderer
Draws a scene graph into an image.

Functions§

scene_to_pixels
Maps scene coordinates (origin at the center, y down) to output pixels.