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();