Skip to main content

Module draw

Module draw 

Source

Structs§

ClipRect
Axis-aligned scissor rectangle in grid coordinates.
Color
Linear RGBA colour with components in 0.0..=1.0.
Pane
wgpu renderer for a single render target.
Rect
Axis-aligned rectangle in grid coordinates.
Scene
Batched draw list assembled each frame before it is handed to Pane::render.
ShaderId
Opaque handle to a compiled render pipeline, returned by Pane::register_shader.

Enums§

TextAlign
Horizontal alignment for text drawn inside a fixed-width box.

Functions§

grid_width
Return the grid-space width for a window of size pw × ph pixels.
run
Run a standalone pane application, blocking until the window is closed.
to_ndc
Convert a grid-space point to normalised device coordinates [x, y].