Esempio n. 1
0
func (win *Window) UpdateSurface() error {
	if C.SDL_UpdateWindowSurface(win.c) != 0 {
		return getError()
	}

	return nil
}
Esempio n. 2
0
func (w *Window) UpdateSurface() int {
	return int(C.SDL_UpdateWindowSurface(w.cWindow))
}
Esempio n. 3
0
func (window *Window) UpdateSurface() int {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (int)(C.SDL_UpdateWindowSurface(_window))
}
Esempio n. 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
}
Esempio n. 5
0
File: video.go Progetto: 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
}
Esempio n. 6
0
func (window *Window) UpdateSurface() int {
	return int(C.SDL_UpdateWindowSurface(window.cptr()))
}