Esempio n. 1
0
func bindEvents(window *glfw.Window, delegate WindowDelegate) {
	window.SetFramebufferSizeCallback(delegate.Reshape)
	window.SetMouseButtonCallback(delegate.MouseClick)
	window.SetCursorPositionCallback(delegate.MouseMove)
	window.SetKeyCallback(delegate.KeyPress)
	window.SetScrollCallback(delegate.Scroll)
	window.SetCloseCallback(delegate.OnClose)
}