예제 #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))
}