(bind-func gui_shutdown
(lambda ()
(gui_reset)
(if (not (null? (GUI_context EXTEMPORE_GUI)))
(nvgDeleteGL3 (GUI_context EXTEMPORE_GUI)))
(tset! EXTEMPORE_GUI 1 null)
(if (not (null? (GUI_window EXTEMPORE_GUI)))
(glfwDestroyWindow (GUI_window EXTEMPORE_GUI)))
(tset! EXTEMPORE_GUI 0 null)))