func (w *Window) SwapBuffers() {
	C.glfwSwapBuffers(w.data)
	panicError()
}
SwapBuffers swaps the front and back buffers of the window. If the
swap interval is greater than zero, the GPU driver waits the specified number
of screen updates before swapping the buffers.
package glfw
import "C"
import (
	"unsafe"
)
func (w *Window) MakeContextCurrent() {
	C.glfwMakeContextCurrent(w.data)
	panicError()
}
func DetachCurrentContext() {
	C.glfwMakeContextCurrent(nil)
	panicError()
}
func GetCurrentContext() *Window {
	w := C.glfwGetCurrentContext()
	panicError()
	if w == nil {
		return nil
	}
	return windows.get(w)
}