Example #1
0
// Destroy destroys the GLFW window.
func (w *Window) Destroy() {
	C.glfwDestroyWindow(w.glfwWin)
}
Example #2
0
func (w *Window) Destroy() {
	C.glfwDestroyWindow(w.w)
	windows.Lock()
	delete(windows.m, w.w)
	windows.Unlock()
}
Example #3
0
//Destroy destroys the specified window and its context. On calling this
//function, no further callbacks will be called for that window.
//
//This function may only be called from the main thread. See
//https://code.google.com/p/go-wiki/wiki/LockOSThread
func (w *Window) Destroy() {
	windows.remove(w.data)
	C.glfwDestroyWindow(w.data)
}
Example #4
0
File: glfw.go Project: maun/glfw
func DestroyWindow(window Window) { C.glfwDestroyWindow(C.GLFWwindow(window)) }
Example #5
0
// Destroy destroys the specified window and its context. On calling this
// function, no further callbacks will be called for that window.
//
// This function may only be called from the main thread.
func (w *Window) Destroy() {
	windows.remove(w.data)
	C.glfwDestroyWindow(w.data)
	panicError()
}