MCPcopy Create free account
hub / github.com/casey/pxl / render

Method render

pxl/src/lib.rs:252–252  ·  view source on GitHub ↗

Draw to the display Called by the runtime whenever the display is ready to present a new frame WIDTH — first element of the tuple returned by `resolution()` HEIGHT — second element of the tuple returned by `resolution()` `pixels` — a slice of pixels with `WIDTH * HEIGHT` elements `pixels[x + y * WIDTH]` is the `x`th pixel in the `y`th row, with `(0,0)` starting in the upper left corner of the

(&mut self, _pixels: &mut [Pixel])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runMethod · 0.45

Implementers 3

main.rspxl-mono/src/main.rs
life.rspxl/examples/life.rs
main.rspxl/examples/shaders/main.rs

Calls

no outgoing calls

Tested by

no test coverage detected