func key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) { if key == glfw.KeyEscape && action == glfw.Press { w.SetShouldClose(true) } else if key == glfw.KeySpace && action == glfw.Press { blowup = !blowup } else if key == glfw.KeyP && action == glfw.Press { premult = !premult } }