func (osx *osxSystemObject) SwapBuffers() { globalLock.Lock() defer globalLock.Unlock() C.SwapBuffers(unsafe.Pointer(osx.context)) }
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 }
func (window *Win32Window) SwapBuffers() { C.SwapBuffers(*(*C.HDC)(window.GetHDC())) }