Function moon_engine::gl::get_context
source · [−]pub fn get_context() -> GL
Expand description
Get the WebGl2RenderingContext
of a canvas with an element ID of “canvas”
This function will panic in case of an error
Examples
use moon_engine::gl::*;
let context: GL = get_context();