[−][src]Function web_glitz::runtime::single_threaded::init
pub unsafe fn init<O>(canvas: &HtmlCanvasElement, options: &O) -> O::Output where
O: Options,
Initializes a single threaded WebGlitz runtime for the canvas using the options and returns
a tuple of the WebGlitz RenderingContext and the DefaultRenderTarget associated with the
canvas.
See the module documentation for [web_glitz::runtime::single_threaded] for details.