utils.cube
A wgpu example showing a rotating cube. Provides setup_drawing_sync() and
setup_drawing_async() that can be used in examples with rendercanvas.
- async rendercanvas.utils.cube.setup_drawing_async(canvas, limits=None, format=None)
Setup to async-draw a rotating cube on the given canvas.
The given canvas must implement WgpuCanvasInterface, but nothing more. Returns the draw function.