示例#1
0
文件: video.go 项目: DeedleFake/sdl
func (win *Window) UpdateSurface() error {
	if C.SDL_UpdateWindowSurface(win.c) != 0 {
		return getError()
	}

	return nil
}
示例#2
0
文件: video.go 项目: krig/Go-SDL2
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
文件: video.go 项目: flazz/go-sdl2
// 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
文件: video.go 项目: salihdb/sdl
// 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
文件: video.go 项目: JalfResi/go-sdl2
func (window *Window) UpdateSurface() int {
	return int(C.SDL_UpdateWindowSurface(window.cptr()))
}