示例#1
0
文件: glfw.go 项目: rolfrm/go-glfw
func SwapBuffers() {
	C.glfwSwapBuffers()
}
示例#2
0
文件: context.go 项目: godispy/glfw
// 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.
func (w *Window) SwapBuffers() {
	C.glfwSwapBuffers(w.data)
	panicError()
}
示例#3
0
文件: window.go 项目: amsibamsi/three
// refreshWait refreshes the window content on screen with the currently drawn
// data on the window. The call will block until buffers have been swapped.
func (w *Window) refreshWait() {
	C.glfwSwapBuffers(w.glfwWin)
}
示例#4
0
文件: context.go 项目: godispy/glfw
//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.
func (w *Window) SwapBuffers() {
	C.glfwSwapBuffers(w.data)
}
示例#5
0
文件: glfw.go 项目: maun/glfw
func SwapBuffers(window Window) {
	C.glfwSwapBuffers(C.GLFWwindow(window))
}