Function cgl_rs::graphics::shutdown

source ·
pub fn shutdown()
Expand description

Shuts down the CGL Graphics Module.

This function should be called before cgl_rs::shutdown().

Example

cgl_rs::init().expect("Failed to initialize CGL");
let mut window = cgl_rs::Window::new("My Window", 800, 600).unwrap();
cgl_rs::graphics::init().expect("Failed to initialize CGL Graphics Module");
// ...
cgl_rs::graphics::shutdown();
window.destroy();
cgl_rs::shutdown();