Пример #1
0
func (win *Window) UpdateSurface() error {
	if C.SDL_UpdateWindowSurface(win.c) != 0 {
		return getError()
	}

	return nil
}
Пример #2
0
func (w *Window) UpdateSurface() int {
	return int(C.SDL_UpdateWindowSurface(w.cWindow))
}
Пример #3
0
func (window *Window) UpdateSurface() int {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (int)(C.SDL_UpdateWindowSurface(_window))
}
Пример #4
0
// Window (https://wiki.libsdl.org/SDL_UpdateWindowSurface)
func (window *Window) UpdateSurface() error {
	if C.SDL_UpdateWindowSurface(window.cptr()) != 0 {
		return GetError()
	}
	return nil
}
Пример #5
0
// Update copies the window surface to the screen.
//
// Note: A Surface must be associated with the window before calling this
// function.
func (win *Window) Update() (err error) {
	if C.SDL_UpdateWindowSurface(win.cWin) != 0 {
		return getError()
	}
	return nil
}
Пример #6
0
func (window *Window) UpdateSurface() int {
	return int(C.SDL_UpdateWindowSurface(window.cptr()))
}