示例#1
0
文件: window.go 项目: amsibamsi/three
// ShouldClose returns true if the window was requested to close by a GUI
// operation.
func (w *Window) ShouldClose() bool {
	should := C.glfwWindowShouldClose(w.glfwWin)
	return should != 0
}
示例#2
0
文件: window.go 项目: juturnas/glfw3
//ShouldClose returns the value of the close flag of the specified window.
func (w *Window) ShouldClose() bool {
	return glfwbool(C.glfwWindowShouldClose(w.data))
}
示例#3
0
func (w *Window) ShouldClose() bool {
	return C.glfwWindowShouldClose(w.w) == C.GL_TRUE
}
示例#4
0
文件: window.go 项目: godispy/glfw
// ShouldClose returns the value of the close flag of the specified window.
func (w *Window) ShouldClose() bool {
	ret := glfwbool(C.glfwWindowShouldClose(w.data))
	panicError()
	return ret
}