Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

prepare

Function prepare 

Source
pub fn prepare(sink: &mut dyn Sink)
Expand description

The GP0 words that put the state the indicator’s rectangles are drawn under to its defaults: mask bit off (E6h), plain draw mode (E1h).

Call it once before the first draw if the program’s GPU state is unknown. The drawing area and offset are the caller’s: they decide where in VRAM the box lands, and a program that draws into a back buffer sets them to the buffer the viewer is looking at.