Beispiel #1
0
func (osx *osxSystemObject) SwapBuffers() {
	globalLock.Lock()
	defer globalLock.Unlock()
	C.SwapBuffers(unsafe.Pointer(osx.context))
}
Beispiel #2
0
func (osx *osxSystemObject) SwapBuffers() {
	C.SwapBuffers(unsafe.Pointer(osx.context))
}
// Display what has been rendered to the context so far
func (ic *contextInternal) swapBuffers() ThreadError {
	if C.SwapBuffers(ic.hdc) == C.FALSE {
		return NewThreadError(fmt.Errorf("SwapBuffers (%d)", C.GetLastError()), true)
	}
	return nil
}
Beispiel #4
0
func (window *Win32Window) SwapBuffers() {
	C.SwapBuffers(*(*C.HDC)(window.GetHDC()))
}