コード例 #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))
}